/* ==========================================================================
   Princess FinFlow - Ultra Cute Pink Princess Aesthetic & Responsive Theme
   ========================================================================== */

:root {
  /* Cute Pink Pastel Palette */
  --bg-gradient: linear-gradient(135deg, #fff0f5 0%, #ffe4e1 45%, #f8bbd0 100%);
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  
  --border-pink: rgba(255, 133, 161, 0.35);
  --border-pink-bright: #ff85a1;

  --text-main: #4a154b;
  --text-muted: #8e24aa;
  --text-sub: #ab47bc;

  /* Pink & Cute Accents */
  --primary-pink: #ff6584;
  --primary-pink-hover: #ff4081;
  --accent-hotpink: #ff1493;
  --accent-gold: #ffb300;
  --accent-gold-bg: #fff8e1;
  
  --income-pink: #ff6584;
  --income-bg: #fff0f5;
  --expense-rose: #d81b60;
  --expense-bg: #fce4ec;
  --balance-gold: #f57f17;

  /* Fonts & Radius */
  --font-cute: 'Fredoka', 'Quicksand', sans-serif;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 50px;

  --shadow-cute: 0 10px 25px rgba(255, 101, 132, 0.15);
  --shadow-hover: 0 14px 30px rgba(255, 101, 132, 0.25);
  
  --transition-smooth: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-cute);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  position: relative;
}

/* Cute Floating Background Sparkles */
.cute-bg-elements {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0.6;
  animation: floatSparkle 6s infinite ease-in-out alternate;
}

.s1 { top: 8%; left: 5%; animation-delay: 0s; }
.s2 { top: 75%; left: 8%; animation-delay: 1.5s; }
.s3 { top: 15%; right: 6%; animation-delay: 3s; }
.s4 { top: 80%; right: 10%; animation-delay: 2s; }
.s5 { top: 45%; left: 48%; animation-delay: 4s; }

@keyframes floatSparkle {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  100% { transform: translateY(-20px) rotate(15deg) scale(1.15); }
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.sidebar {
  width: 290px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-right: 2px solid var(--border-pink);
  display: flex;
  flex-direction: column;
  padding: 1.8rem 1.4rem;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 100;
  box-shadow: var(--shadow-cute);
  transition: var(--transition-smooth);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px dashed var(--border-pink);
}

.brand-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff85a1, #ff4081);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 6px 15px rgba(255, 64, 129, 0.3);
}

.brand-text h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-hotpink);
  letter-spacing: -0.3px;
}

.brand-text h2 span {
  color: var(--text-main);
}

.badge-princess {
  background: #fce4ec;
  color: var(--accent-hotpink);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-pink-bright);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: #fff0f5;
  color: var(--accent-hotpink);
  transform: translateX(4px);
}

.nav-item.active {
  background: linear-gradient(135deg, #ffe4e1, #fff0f5);
  color: var(--accent-hotpink);
  border-color: var(--border-pink-bright);
  box-shadow: 0 4px 15px rgba(255, 101, 132, 0.2);
}

.nav-icon {
  font-size: 1.2rem;
}

.nav-counter {
  margin-left: auto;
  background: var(--primary-pink);
  color: #fff;
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 2px dashed var(--border-pink);
}

.notification-status-card {
  background: #fff0f5;
  border: 2px solid var(--border-pink);
  padding: 0.9rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.notif-status-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5252;
}

.status-indicator.active {
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
}

.status-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-hotpink);
}

.notif-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.live-clock {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-sub);
}

.live-clock span#clock-time {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-hotpink);
}

/* Main Content */
.main-content {
  margin-left: 290px;
  flex: 1;
  padding: 2.2rem 2.8rem;
  max-width: 1300px;
}

/* Top Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.header-left h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
}

.header-left p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

/* Cute Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, #ff6584, #ff4081);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 64, 129, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 64, 129, 0.5);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 2px solid var(--border-pink);
}

.btn-secondary:hover {
  background: #fff0f5;
  border-color: var(--primary-pink);
}

.btn-pink {
  background: #fce4ec;
  color: var(--accent-hotpink);
  border: 1.5px solid var(--border-pink-bright);
}

.btn-pink:hover {
  background: var(--primary-pink);
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

/* Content Sections */
/* Mobile Menu Button */
.mobile-menu-btn {
    display: none; /* hidden on desktop */
    background: var(--primary-pink);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.6rem 0.9rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-left: 0.5rem;
}
.mobile-menu-btn:hover {
    background: var(--primary-pink-hover);
    transform: translateY(-2px);
}
/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 90;
    backdrop-filter: blur(2px);
}
/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        height: 100vh;
        width: 260px;
        transition: var(--transition-smooth);
        z-index: 100;
    }
    .sidebar.active {
        left: 0;
    }
    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .app-container {
        flex-direction: column;
    }
    .main-content {
        margin-left: 0;
        padding: 1.5rem 1rem;
    }
    .mobile-overlay.active {
        display: block;
    }
    .top-header {
        flex-wrap: wrap;
    }
    .header-right {
        margin-top: 0.5rem;
    }
}

.content-section {
  display: none;
  animation: cutePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.content-section.active {
  display: block;
}

@keyframes cutePop {
  from { opacity: 0; transform: scale(0.97) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Cards & Glassmorphism */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 2px solid var(--border-pink);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-cute);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  box-shadow: var(--shadow-hover);
}

.margin-top-lg {
  margin-top: 1.8rem;
}

/* Timeframe Bar */
.timeframe-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-pink);
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-cute);
}

.timeframe-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pill-group {
  display: flex;
  gap: 0.4rem;
  background: #fff0f5;
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-pink);
}

.pill-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pill-btn:hover {
  color: var(--accent-hotpink);
}

.pill-btn.active {
  background: linear-gradient(135deg, #ff6584, #ff4081);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 64, 129, 0.3);
}

.input-date-filter {
  background: #fff;
  border: 2px solid var(--border-pink);
  color: var(--text-main);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: var(--bg-card);
  border: 2px solid var(--border-pink);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-cute);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.stat-card.balance { background: #fff8e1; border-color: #ffe082; }
.stat-card.account-bca { background: #e3f2fd; border-color: #90caf9; }
.stat-card.account-seabank { background: #e0f2f1; border-color: #80cbd4; }
.stat-card.account-shopeepay { background: #fff3e0; border-color: #ffcc80; }

.summary-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.summary-pill {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
}

.summary-pill.inc { background: #fce4ec; color: var(--accent-hotpink); border: 1px solid #f48fb1; }
.summary-pill.exp { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

.badge-account {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-account.bca { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.badge-account.seabank { background: #e0f2f1; color: #00695c; border: 1px solid #80cbd4; }
.badge-account.shopeepay { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }


.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0.2rem 0;
  color: var(--accent-hotpink);
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-sub);
}

/* Progress / Ratio Bar */
.card-header {
  margin-bottom: 1.2rem;
}

.card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.progress-container {
  height: 18px;
  background: #f8bbd0;
  border-radius: var(--radius-pill);
  display: flex;
  overflow: hidden;
  padding: 3px;
  border: 1px solid var(--border-pink);
}

.progress-bar-income {
  background: linear-gradient(90deg, #ff85a1, #ff4081);
  height: 100%;
  border-radius: 12px 0 0 12px;
  transition: width 0.5s ease;
}

.progress-bar-expense {
  background: linear-gradient(90deg, #ad1457, #880e4f);
  height: 100%;
  border-radius: 0 12px 12px 0;
  transition: width 0.5s ease;
}

.progress-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-income { background: #ff4081; }
.dot-expense { background: #880e4f; }

/* Table */
.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 2px solid var(--border-pink);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
}

.table-responsive {
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.6rem;
}

.custom-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px dashed var(--border-pink);
}

.custom-table tbody tr {
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(255, 133, 161, 0.08);
  transition: var(--transition-smooth);
}

.custom-table tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 133, 161, 0.18);
}

.custom-table td {
  padding: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-top: 1px solid var(--border-pink);
  border-bottom: 1px solid var(--border-pink);
}

.custom-table td:first-child {
  border-left: 2px solid var(--border-pink);
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.custom-table td:last-child {
  border-right: 2px solid var(--border-pink);
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.badge-type {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-type.income {
  background: #fce4ec;
  color: var(--accent-hotpink);
  border: 1px solid #f48fb1;
}

.badge-type.expense {
  background: #f8bbd0;
  color: #880e4f;
  border: 1px solid #c2185b;
}

.amount-income {
  color: var(--accent-hotpink);
  font-weight: 700;
}

.amount-expense {
  color: #ad1457;
  font-weight: 700;
}

.btn-icon-del {
  background: #ffebee;
  color: #d32f2f;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.btn-icon-del:hover {
  background: #ff1744;
  color: #fff;
  transform: scale(1.1);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(74, 21, 75, 0.5);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.modal.active {
  display: flex !important;
  animation: cutePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: #ffffff;
  border: 3px solid var(--border-pink-bright);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 35px rgba(255, 101, 132, 0.25);
  padding: 1.6rem;
  max-height: 90vh;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px dashed var(--border-pink);
}

.modal-header h3 {
  font-size: 1.3rem;
  color: var(--accent-hotpink);
}

.close-modal {
  background: #fff0f5;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-modal:hover { background: var(--primary-pink); color: #fff; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.form-group input,
.form-group select {
  background: #fff0f5;
  border: 2px solid var(--border-pink);
  color: var(--text-main);
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 4px rgba(255, 101, 132, 0.2);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: 0.8rem;
  position: sticky;
  bottom: -1.6rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 2px dashed var(--border-pink);
  z-index: 20;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 0.8rem;
}

.empty-state h4 {
  font-size: 1.3rem;
  color: var(--accent-hotpink);
}

.empty-state.hidden { display: none; }

/* TO-DO SECTION */
.todo-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.todo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.3rem;
}

.todo-card {
  background: #ffffff;
  border: 2px solid var(--border-pink);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-cute);
  transition: var(--transition-smooth);
}

.todo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.todo-card.completed {
  opacity: 0.65;
  background: #fff0f5;
}

.todo-card.completed .todo-title-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.todo-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.custom-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid var(--border-pink-bright);
  background: #fff0f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 700;
  color: var(--accent-hotpink);
  transition: var(--transition-smooth);
}

.custom-checkbox.checked {
  background: var(--primary-pink);
  color: #fff;
}

.todo-title-text {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

.todo-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.badge-priority {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.badge-priority.high { background: #ffebee; color: #d81b60; border: 1px solid #ff80ab; }
.badge-priority.medium { background: #fff8e1; color: #f57f17; border: 1px solid #ffe082; }
.badge-priority.low { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }

.todo-due-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.todo-due-badge.overdue {
  color: #d81b60;
  font-weight: 700;
}

.todo-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 2px dashed var(--border-pink);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #ffffff;
  border: 3px solid var(--primary-pink);
  color: var(--text-main);
  padding: 1rem 1.3rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(255, 64, 129, 0.3);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 320px;
  animation: cutePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-icon {
  font-size: 1.5rem;
}

/* Mobile Bottom Nav (Hidden on Desktop) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 65px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-top: 2px solid var(--border-pink);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(255, 101, 132, 0.15);
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  flex: 1;
}

.mobile-nav-btn .m-icon {
  font-size: 1.3rem;
}

.mobile-nav-btn.active {
  color: var(--accent-hotpink);
}

/* ==========================================
   FULL RESPONSIVE MOBILE STYLING
   ========================================== */
@media (max-width: 992px) {
  .sidebar {
    width: 80px;
    padding: 1.5rem 0.5rem;
  }
  .brand-text, .nav-item span, .notif-desc, .status-title, .live-clock {
    display: none;
  }
  .nav-item { justify-content: center; padding: 0.8rem; }
  .main-content { margin-left: 80px; padding: 1.6rem; }
}

@media (max-width: 768px) {
  /* Sidebar Drawer on Mobile */
  .sidebar {
    position: fixed;
    left: -320px;
    top: 0;
    bottom: 0;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    box-shadow: 5px 0 25px rgba(255, 101, 132, 0.25);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), left 0.3s ease;
    display: flex !important;
  }

  .sidebar.active {
    left: 0 !important;
  }

  .brand-text, .nav-item span, .notif-desc, .status-title, .live-clock {
    display: block !important;
  }

  .nav-item {
    justify-content: flex-start !important;
    padding: 0.9rem 1.1rem !important;
  }

  /* Main Container & Top Header */
  .main-content {
    margin-left: 0 !important;
    padding: 1rem 1rem 90px 1rem !important;
  }

  .top-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
  }

  .header-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .header-left h1 {
    font-size: 1.45rem !important;
    line-height: 1.2;
  }

  .header-left p {
    font-size: 0.82rem !important;
  }

  .header-right {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }

  .header-right .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.88rem;
    padding: 0.7rem 1rem;
  }

  /* Mobile Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 65px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border-top: 2px solid var(--border-pink);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -5px 25px rgba(255, 101, 132, 0.18);
  }

  /* Timeframe & Filters Bar */
  .timeframe-bar, .card-header {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.8rem;
  }

  .pill-group {
    width: 100%;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pill-group::-webkit-scrollbar {
    display: none;
  }

  .pill-btn {
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 0.45rem 0.85rem;
  }

  /* Search Box */
  .search-box {
    width: 100% !important;
  }

  .search-box input {
    width: 100% !important;
    font-size: 16px !important;
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .stat-card {
    padding: 1rem 1.1rem !important;
  }

  .stat-card .stat-value {
    font-size: 1.4rem !important;
  }

  /* Table Adjustments for Mobile */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
  }

  .custom-table {
    min-width: 580px;
  }

  .custom-table th {
    padding: 0.65rem 0.6rem;
    font-size: 0.78rem;
  }

  .custom-table td {
    padding: 0.75rem 0.6rem;
    font-size: 0.85rem;
  }

  /* To-Do Grid & Cards */
  .todo-card {
    padding: 1rem !important;
  }

  .todo-title-text {
    font-size: 0.95rem !important;
  }

  .custom-checkbox {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 1.1rem !important;
  }

  /* Modals as Touch-Friendly Sheet */
  .modal {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .modal-content {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: var(--radius-lg) !important;
    border-top-right-radius: var(--radius-lg) !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    padding: 1.4rem !important;
    animation: slideUpSheet 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  @keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .form-group input, .form-group select {
    font-size: 16px !important;
    padding: 0.75rem 0.9rem !important;
  }

  /* Toast Notification Position on Mobile */
  .toast-container {
    left: 1rem !important;
    right: 1rem !important;
    bottom: 75px !important;
  }

  .toast {
    width: 100% !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .header-left h1 {
    font-size: 1.3rem !important;
  }

  .card.glass-card {
    padding: 1.1rem !important;
    border-radius: var(--radius-md) !important;
  }

  .acc-pill, .target-acc-pill {
    padding: 0.55rem 0.5rem !important;
    font-size: 0.78rem !important;
  }

  .amount-pill {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.78rem !important;
  }
}

/* Quick Mode Drawer Styling */
.quick-mode-bar {
  display: flex;
  gap: 0.4rem;
  background: #fff0f5;
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-pink);
  margin-bottom: 1.4rem;
  overflow-x: auto;
}

.quick-mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem 0.5rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.quick-mode-btn:hover {
  color: var(--accent-hotpink);
}

.quick-mode-btn.active {
  background: linear-gradient(135deg, #ff6584, #ff4081);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 64, 129, 0.3);
}

.input-big-amount {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: var(--accent-hotpink) !important;
  text-align: center;
  background: #fff !important;
  border: 2.5px solid var(--primary-pink) !important;
}

.quick-amount-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.amount-pill {
  background: #fff0f5;
  border: 1.5px solid var(--border-pink-bright);
  color: var(--accent-hotpink);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.amount-pill:hover {
  background: var(--primary-pink);
  color: #fff;
  transform: scale(1.05);
}

.account-pill-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.acc-pill, .target-acc-pill {
  flex: 1;
  background: #fff;
  border: 2px solid var(--border-pink);
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.acc-pill:hover, .target-acc-pill:hover {
  border-color: var(--primary-pink);
  color: var(--accent-hotpink);
}

.acc-pill.active, .target-acc-pill.active {
  background: #fff0f5;
  border-color: var(--primary-pink);
  color: var(--accent-hotpink);
  box-shadow: 0 4px 12px rgba(255, 101, 132, 0.2);
}

.btn-block {
  width: 100%;
  justify-content: center;
}


