/* ==========================================
   SOFT DATA HUB DASHBOARD
   CLEAN DASHBOARD CSS
========================================== */


/* ==========================================
   RESET
========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f7fb;
  color: #222;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}


/* ==========================================
   MAIN CONTAINER
========================================== */

.container {
  width: 92%;
  max-width: 550px;
  margin: 20px auto 110px;
}


/* ==========================================
   SIDEBAR
========================================== */

.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 260px;
  height: 100vh;
  background: #0057d9;
  color: #fff;
  transition: 0.35s ease;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  padding: 30px 20px;
  text-align: center;
}

.sidebar-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 15px;
}

.sidebar-header h2 {
  font-size: 22px;
  margin-bottom: 5px;
}

.sidebar-header p {
  font-size: 14px;
  opacity: 0.9;
}

.sidebar ul {
  list-style: none;
}

.sidebar li a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 22px;
  color: #fff;
  transition: 0.3s ease;
}

.sidebar li a:hover {
  background: rgba(255, 255, 255, 0.12);
}


/* ==========================================
   OVERLAY
========================================== */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 999;
}

.overlay.active {
  display: block;
}


/* ==========================================
   HEADER
========================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 15px 18px;

  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.menu-btn,
.notify-btn,
#dark-mode-toggle {
  width: 42px;
  height: 42px;

  border-radius: 50%;

  background: #eef4ff;
  color: #0057d9;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 18px;

  transition: 0.3s ease;
}

.menu-btn:hover,
.notify-btn:hover,
#dark-mode-toggle:hover {
  background: #0057d9;
  color: #fff;
}


/* ==========================================
   LOGO AREA
========================================== */

.logo-area {
  display: flex;
  align-items: center;

  flex: 1;

  margin: 0 12px;
}

.logo-area img {
  width: 55px;
  height: 55px;

  border-radius: 50%;

  margin-right: 12px;
}

.logo-area h1 {
  font-size: 21px;
  color: #0057d9;
}

.logo-area p {
  font-size: 12px;
  color: #777;

  margin-top: 3px;
}

.header-icons {
  display: flex;
  gap: 10px;
}


/* ==========================================
   NOTIFICATION BADGE
========================================== */

.notify-btn {
  position: relative;
}

#notification-count {
  position: absolute;

  top: -4px;
  right: -4px;

  min-width: 18px;
  height: 18px;

  border-radius: 50%;

  background: red;
  color: #fff;

  display: none;

  justify-content: center;
  align-items: center;

  font-size: 11px;
  font-weight: bold;
}


/* ==========================================
   WELCOME CARD
========================================== */

.welcome-card {
  position: relative;

  overflow: hidden;

  background: linear-gradient(
    135deg,
    #0056d6,
    #0084ff
  );

  border-radius: 22px;

  padding: 25px;

  color: #fff;

  margin-bottom: 25px;

  box-shadow:
    0 10px 30px rgba(0, 86, 214, 0.25);
}

.watermark {
  display: none;
}

/* ==========================================
   GREETING
========================================== */

.welcome-text {
  position: relative;
  z-index: 2;
}

.welcome-text h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
}

.welcome-text h1 {
  font-size: 30px;
  font-weight: 700;

  margin: 0 0 8px;

  line-height: 1.2;
}

.welcome-text h2 {
  font-size: 42px;
  font-weight: 700;

  margin: 0;

  line-height: 1.2;
}

.welcome-text p {
  font-size: 15px;
  line-height: 1.6;

  color: rgba(255, 255, 255, 0.9);
}


/* ==========================================
   TIME GREETING
========================================== */

#greeting-message {
  font-size: 32px;
  font-weight: 500;

  margin: 0 0 8px;

  line-height: 1.2;
}

#greeting-text {
  font-size: 32px;
  font-weight: 500;

  margin: 0 0 8px;

  line-height: 1.2;
}

#user-name {
  font-size: 42px;
  font-weight: 700;

  margin: 0;

  line-height: 1.2;
}


/* ==========================================
   WALLET CARD
========================================== */

.wallet-card {
  background: #fff;

  border-radius: 18px;

  margin-top: 25px;

  padding: 20px;

  color: #222;
}

.wallet-title {
  color: #666;

  font-size: 14px;

  margin-bottom: 15px;
}

.wallet-balance-row {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;
}

.wallet-balance {
  font-size: 32px;

  font-weight: bold;

  color: #0056d6;
}


/* ==========================================
   WALLET ICON BUTTON
========================================== */

/* ==========================
   WALLET BALANCE CONTROLS
========================== */

.wallet-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.wallet-balance {
  font-size: 32px;
  font-weight: 700;
  color: #0056d6;
  white-space: nowrap;
}

.wallet-controls {
  display: flex;
  align-items: center;
  gap: 28px;
}

.balance-icon-btn {
  border: none;
  background: transparent;
  color: #222;
  padding: 0;
  margin: 0;
  width: 38px;
  height: 38px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  font-size: 20px;
  cursor: pointer;
  
  transition: transform .2s ease, color .2s ease;
}

.balance-icon-btn:hover {
  color: #0056d6;
  transform: scale(1.08);
}

.balance-icon-btn:active {
  transform: scale(.92);
}

/* ==========================
   FUND WALLET & HISTORY
========================== */

.wallet-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.wallet-action {
  width: 100%;
  min-height: 82px;
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  
  display: flex;
  align-items: center;
  gap: 16px;
  
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  
  transition: transform 0.2s ease,
    box-shadow 0.2s ease;
}

.wallet-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Icon */

.wallet-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  
  border-radius: 50%;
  background: #eef4ff;
  
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-icon i {
  color: #0056d6;
  font-size: 20px;
}

/* Text */

.wallet-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wallet-text h4 {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.wallet-text p {
  font-size: 13px;
  color: #777;
  margin: 0;
}
/* ==========================================
   SECTION TITLE
========================================== */

.section-title {
  font-size: 22px;

  font-weight: 700;

  color: #222;

  margin-bottom: 18px;
}


/* ==========================
   QUICK SERVICES
========================== */

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin: 25px 0 15px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 30px;
}

.service-card {
  height: 105px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  padding: 10px;
  text-align: center;
  
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.service-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 8px;
}

.service-card span {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

/* ==========================================
   RECENT TRANSACTIONS
========================================== */

.recent-box {
  background: #fff;

  border-radius: 20px;

  padding: 20px;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.08);

  margin-bottom: 30px;
}

.recent-box h2 {
  color: #0056d6;

  font-size: 22px;

  margin-bottom: 18px;
}

.transaction-item {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 15px 0;

  border-bottom:
    1px solid #eee;
}

.transaction-item:last-child {
  border-bottom: none;
}

.transaction-left {
  display: flex;

  align-items: center;

  gap: 14px;
}

.transaction-icon {
  width: 48px;
  height: 48px;

  border-radius: 50%;

  background: #0056d6;

  color: #fff;

  display: flex;

  justify-content: center;

  align-items: center;

  font-size: 18px;
}

.transaction-details h4 {
  font-size: 15px;

  color: #222;

  margin-bottom: 4px;
}

.transaction-details p {
  font-size: 13px;

  color: #777;
}

.transaction-right {
  text-align: right;
}

.transaction-right h4 {
  color: #0056d6;

  font-size: 16px;

  margin-bottom: 4px;
}

.transaction-right span {
  color: #16a34a;

  font-size: 12px;

  font-weight: 600;
}

.empty-text {
  text-align: center;

  color: #888;

  padding: 30px 15px;
}


/* ==========================================
   BOTTOM NAVIGATION
========================================== */

.bottom-nav {
  position: fixed;

  bottom: 0;
  left: 0;

  width: 100%;

  background: #fff;

  display: flex;

  justify-content: space-around;

  align-items: center;

  padding: 12px 0;

  box-shadow:
    0 -4px 12px rgba(0, 0, 0, 0.08);

  z-index: 999;
}

.bottom-item {
  display: flex;

  flex-direction: column;

  align-items: center;

  color: #777;

  font-size: 12px;

  transition: 0.3s ease;
}

.bottom-item i {
  font-size: 22px;

  margin-bottom: 4px;
}

.bottom-item.active,
.bottom-item:hover {
  color: #0056d6;
}


/* ==========================================
   NOTIFICATION PANEL
========================================== */

.notification-panel {
  position: fixed;

  top: 0;

  right: -100%;

  width: 340px;

  max-width: 90%;

  height: 100%;

  background: #fff;

  box-shadow:
    -5px 0 20px rgba(0, 0, 0, 0.2);

  transition: 0.35s ease;

  z-index: 1200;

  overflow-y: auto;
}

.notification-panel.active {
  right: 0;
}

.notification-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 20px;

  background: #0056d6;

  color: #fff;
}

.notification-header h2 {
  font-size: 22px;
}

.notification-header button {
  background: none;

  color: #fff;

  font-size: 22px;

  border: none;

  cursor: pointer;
}

.notification-list {
  padding: 15px;
}

.notification-item {
  display: flex;

  gap: 15px;

  background: #f5f7fb;

  padding: 15px;

  border-radius: 15px;

  margin-bottom: 15px;
}

.notification-item i {
  color: #0056d6;

  font-size: 22px;

  margin-top: 2px;
}

.notification-item strong {
  display: block;

  margin-bottom: 5px;
}

.notification-item p {
  color: #666;

  font-size: 14px;
}


/* ==========================================
   GREETING SECTION
========================================== */

.greeting-section {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 25px 20px 20px;

  background: #fff;
}

.greeting-text {
  color: #111;
}

.greeting-text h1 {
  font-size: 32px;

  font-weight: 500;

  margin: 0 0 8px;

  line-height: 1.2;
}

.greeting-text h2 {
  font-size: 42px;

  font-weight: 700;

  margin: 0;

  line-height: 1.2;
}

.user-name {
  font-size: 40px;

  font-weight: 700;

  color: #111;
}

.greeting-actions {
  display: flex;

  align-items: center;

  gap: 18px;
}

.notification-btn {
  position: relative;

  border: none;

  background: transparent;

  font-size: 28px;

  color: #ef4444;

  cursor: pointer;
}

.notification-dot {
  position: absolute;

  top: 0;
  right: 0;

  width: 9px;
  height: 9px;

  background: #ef4444;

  border-radius: 50%;
}

.profile-avatar {
  width: 55px;
  height: 55px;

  border-radius: 50%;

  background: #f3f4f6;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 25px;

  color: #555;
}


/* ==========================================
   DARK MODE
========================================== */

body.dark-mode {
  background: #121212;
  color: #fff;
}

body.dark-mode .header,
body.dark-mode .wallet-card,
body.dark-mode .service-card,
body.dark-mode .recent-box,
body.dark-mode .notification-panel,
body.dark-mode .bottom-nav,
body.dark-mode .greeting-section {
  background: #1f1f1f;
}

body.dark-mode .sidebar {
  background: #181818;
}

body.dark-mode .wallet-title,
body.dark-mode .transaction-details p,
body.dark-mode .service-card span,
body.dark-mode .logo-area p {
  color: #bbb;
}

body.dark-mode .wallet-balance,
body.dark-mode .logo-area h1,
body.dark-mode .recent-box h2,
body.dark-mode .section-title {
  color: #4da3ff;
}

body.dark-mode .transaction-details h4,
body.dark-mode .transaction-right h4 {
  color: #fff;
}

body.dark-mode .notification-item {
  background: #2b2b2b;
}

body.dark-mode .menu-btn,
body.dark-mode .notify-btn,
body.dark-mode #dark-mode-toggle,
body.dark-mode .icon-btn {
  background: #333;
  color: #fff;
}

body.dark-mode .wallet-action.secondary {
  background: #333;
  color: #fff;
}

body.dark-mode .greeting-text,
body.dark-mode .greeting-text h1,
body.dark-mode .greeting-text h2,
body.dark-mode .user-name {
  color: #fff;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 480px) {

  .container {
    width: 94%;
  }

  .logo-area h1 {
    font-size: 18px;
  }

  .logo-area p {
    font-size: 11px;
  }

  .welcome-text h1,
  #greeting-message {
    font-size: 28px;
  }

  .welcome-text h2,
  #user-name {
    font-size: 38px;
  }

  .wallet-balance {
    font-size: 26px;
  }

  .wallet-buttons {
    flex-direction: column;
  }

  .wallet-action {
    width: 100%;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);

    gap: 10px;
  }

  .service-card {
    padding: 14px 6px;
  }

  .service-card img {
    width: 38px;
    height: 38px;
  }

  .service-card span {
    font-size: 11px;
  }

  .notification-panel {
    width: 100%;
    max-width: 100%;
  }

  .greeting-text h1 {
    font-size: 27px;
  }

  .greeting-text h2 {
    font-size: 36px;
  }
}


/* ==========================================
   SMOOTH ANIMATIONS
========================================== */

.service-card,
.wallet-action,
.icon-btn,
.bottom-item,
.menu-btn,
.notify-btn,
#dark-mode-toggle {
  transition: 0.3s ease;
}
/* ==========================
   DARK MODE - TRANSACTIONS
========================== */

body.dark-mode .recent-box {
  background: #1f1f1f;
  color: #fff;
}

body.dark-mode .recent-box h2 {
  color: #4da3ff;
}

body.dark-mode .transaction-item {
  border-bottom-color: #3a3a3a;
}

body.dark-mode .transaction-details h4 {
  color: #ffffff;
}

body.dark-mode .transaction-details p {
  color: #aaaaaa;
}

body.dark-mode .transaction-right h4 {
  color: #4da3ff;
}

body.dark-mode .transaction-right span {
  color: #4ade80;
}

body.dark-mode .empty-text {
  color: #aaaaaa;
}
body.dark-mode .transaction-icon {
  background: #2d5fc7;
  color: #ffffff;
}
/* ==========================
   QUICK SERVICES - FINAL
   3 ON TOP + 3 BELOW
========================== */

.services-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 18px 0 30px !important;
}

.service-card {
  width: 100% !important;
  height: 105px !important;
  min-height: 105px !important;
  box-sizing: border-box !important;
  
  background: #fff !important;
  border-radius: 16px !important;
  
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  
  padding: 10px !important;
  text-align: center !important;
  
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06) !important;
}

.service-card img {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain !important;
  margin-bottom: 8px !important;
}

.service-card span {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #333 !important;
  line-height: 1.2 !important;
}
/* ==========================
   DARK MODE WALLET ICONS
========================== */

body.dark-mode .wallet-card .balance-icon-btn {
  color: #0056d6 !important;
  background: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.dark-mode .wallet-card .balance-icon-btn i {
  color: #0056d6 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.dark-mode .wallet-card .balance-icon-btn:hover {
  color: #0084ff !important;
}

body.dark-mode .wallet-card .balance-icon-btn:hover i {
  color: #0084ff !important;
}