/* 
 * Jeep.Pocket - Cute, Bright, Minimal Theme 🌸
 * Custom Styling Tokens & Responsive Layouts
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  /* Theme Colors (Default: Sakura Pink Pastel - Softened Set #1) */
  --primary: #FFD2D6;
  --primary-light: #FFF7F8;
  --primary-hover: #FFB8BE;
  --background: #FFFBFB;
  --card-bg: #FFFFFF;
  --text: #1F1112;
  --text-light: #594B4D;
  --border: #FFF0F2;
  
  /* Status Colors - Softer Pastels from Sale Here Sets */
  --income-color: #95E1D3; /* Set #5 */
  --income-bg: #F3FAF8;
  --expense-color: #F38181; /* Set #5 */
  --expense-bg: #FFF5F5;
  --warning-color: #FCE38A; /* Set #5 */
  --warning-bg: #FFFDF0;
  --info-color: #8AE1FC; /* Set #11 */
  --info-bg: #F0FAFF;
  --accent-color: #D5A4CF; /* Set #2 */
  --accent-bg: #FAF5FF;
  
  /* Shadow & Roundness */
  --shadow-sm: 0 4px 10px rgba(255, 210, 214, 0.03);
  --shadow: 0 10px 30px rgba(255, 210, 214, 0.06);
  --shadow-lg: 0 16px 40px rgba(255, 210, 214, 0.1);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Prompt', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Theme Presets - Mint Pastel (Set #5) */
[data-theme="mint"] {
  --primary: #95E1D3;
  --primary-light: #F3FAF8;
  --primary-hover: #7BCDC0;
  --background: #FAFCFB;
  --border: #E3F7F4;
  --shadow-sm: 0 4px 10px rgba(149, 225, 211, 0.03);
  --shadow: 0 10px 30px rgba(149, 225, 211, 0.06);
  --shadow-lg: 0 16px 40px rgba(149, 225, 211, 0.1);
}

/* Theme Presets - Lavender Pastel (Set #2) */
[data-theme="lavender"] {
  --primary: #D5A4CF;
  --primary-light: #FDF5FD;
  --primary-hover: #C391BD;
  --background: #FDFBFE;
  --border: #FBEBF9;
  --shadow-sm: 0 4px 10px rgba(213, 164, 207, 0.03);
  --shadow: 0 10px 30px rgba(213, 164, 207, 0.06);
  --shadow-lg: 0 16px 40px rgba(213, 164, 207, 0.1);
}

/* Theme Presets - Sunglow Pastel (Set #14) */
[data-theme="sunglow"] {
  --primary: #FAD6A6;
  --primary-light: #FFF8EF;
  --primary-hover: #F9C98F;
  --background: #FFFDFB;
  --border: #FFF0DB;
  --shadow-sm: 0 4px 10px rgba(250, 214, 166, 0.03);
  --shadow: 0 10px 30px rgba(250, 214, 166, 0.06);
  --shadow-lg: 0 16px 40px rgba(250, 214, 166, 0.1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  transition: background-color 0.3s ease;
}

/* Main Layout Grid */
.app-container {
  display: flex;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Styling */
.sidebar {
  width: 280px;
  background-color: var(--card-bg);
  border-right: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px 28px 8px;
  border-bottom: 2px dashed var(--border);
  margin-bottom: 20px;
}

.logo-icon {
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  animation: bounce 2s infinite;
}

.logo-text h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.logo-text p {
  font-size: 13px;
  color: var(--text-light);
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 4px;
}

/* Custom Scrollbar for Sidebar and Containers */
.nav-menu::-webkit-scrollbar,
.main-content::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
  width: 6px;
}
.nav-menu::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.nav-item i {
  font-size: 18px;
  color: var(--text-light);
  transition: var(--transition);
}

.nav-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.nav-item:hover i {
  color: var(--primary);
  transform: translateX(2px);
}

.nav-item.active {
  background-color: var(--primary);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.nav-item.active i {
  color: var(--text);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.plan-card {
  background: linear-gradient(135deg, var(--primary-light) 0%, #FFF0F3 100%);
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.plan-card p {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
}

.plan-card h4 {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Calendar Month Summary Sidebar Card */
.summary-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.summary-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 6px;
}

.summary-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11.5px;
}

.summary-card-row:last-child {
  margin-bottom: 0;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-weight: 700;
}

/* Piggy Bank Sidebar Card */
.piggy-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.piggy-illustration {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  font-size: 32px;
}

.piggy-text {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* Main Area Layout */
.main-content {
  margin-left: 280px;
  flex-grow: 1;
  padding: 30px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

/* Top bar style */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 20px;
}

.greeting-container h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.greeting-container p {
  font-size: 14px;
  color: var(--text-light);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.month-selector {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--card-bg);
  color: var(--text);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: var(--transition);
}

.month-selector:focus {
  border-color: var(--primary);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--card-bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.icon-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--expense-color);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid var(--card-bg);
  font-weight: 700;
}

.profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.profile-badge:hover {
  background-color: var(--primary-light);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.profile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Views Wrapper */
.view-section {
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.view-section.active {
  display: block;
}

/* KPI Summary Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 20px;
  height: 105px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.kpi-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kpi-icon-container {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
}

.kpi-title-block {
  display: flex;
  flex-direction: column;
}

.kpi-title {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
  line-height: 1.2;
}

.kpi-subtitle {
  font-size: 10px;
  color: #B5A9AC;
  font-weight: 500;
}

.kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 6px 0;
}

.kpi-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.kpi-change {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.kpi-change.up {
  color: var(--income-color);
}

.kpi-change.down {
  color: var(--expense-color);
}

.sparkline-wrapper {
  width: 70px;
  height: 20px;
  display: flex;
  align-items: center;
}

.kpi-sparkline {
  width: 100%;
  height: 100%;
}


/* Dashboard Content Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 24px;
}

.main-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.side-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Standard Widget Card Styling */
.widget {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: var(--transition);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.widget-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title i {
  color: var(--primary);
}

.widget-actions {
  display: flex;
  gap: 8px;
}

/* Mini Calendar Widget */
.mini-calendar {
  width: 100%;
}

.mini-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}

.mini-calendar-nav {
  display: flex;
  gap: 4px;
}

.calendar-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.calendar-nav-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  font-size: 11px;
}

.calendar-day-header {
  color: var(--text-light);
  font-weight: 600;
  padding-bottom: 6px;
}

.calendar-day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  font-weight: 500;
}

.calendar-day-cell:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.calendar-day-cell.active {
  background-color: var(--primary);
  color: white;
}

.calendar-day-cell.today {
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.calendar-day-cell.other-month {
  color: #D2C9CB;
}

.day-dots {
  display: flex;
  gap: 2px;
  position: absolute;
  bottom: 2px;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}
.dot.income { background-color: var(--income-color); }
.dot.expense { background-color: var(--expense-color); }
.dot.warning { background-color: var(--warning-color); }
.dot.info { background-color: var(--info-color); }

/* Progress Items */
.progress-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.progress-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.progress-name {
  font-weight: 600;
  color: var(--text);
}

.progress-values {
  font-size: 12px;
  color: var(--text-light);
}

.progress-bar-container {
  width: 100%;
  height: 10px;
  background-color: var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.chart-wrapper {
  position: relative;
  height: 220px;
  width: 100%;
}

/* List Widgets - Recent and Actions */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: var(--radius-sm);
  background-color: var(--background);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.list-item:hover {
  transform: translateX(4px);
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.list-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background-color: var(--card-bg);
}

.item-text-info {
  display: flex;
  flex-direction: column;
}

.item-main-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.item-sub-title {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 1px;
}

.list-item-right {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.item-value {
  font-size: 14px;
  font-weight: 700;
}

.item-value.plus {
  color: var(--income-color);
}

.item-value.minus {
  color: var(--expense-color);
}

.item-value.neutral {
  color: var(--text);
}

/* Standard Button Styling */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-danger {
  background-color: var(--expense-color);
  color: white;
}

.btn-danger:hover {
  background-color: #E04B4B;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.form-control {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--card-bg);
  color: var(--text);
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-control:focus {
  border-color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Custom Table Styles */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--card-bg);
  margin-bottom: 20px;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.custom-table th {
  background-color: var(--primary-light);
  color: var(--text);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.custom-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.custom-table tbody tr:last-child td {
  border-bottom: none;
}

.custom-table tbody tr:hover {
  background-color: rgba(255, 112, 138, 0.02);
}

/* Budget Table Highlighting */
.tr-under-budget {
  background-color: #E8F8F0 !important;
}

.tr-over-budget {
  background-color: #FFF5F5 !important;
}

.span-under-budget {
  color: var(--income-color);
  font-weight: 600;
}

.span-over-budget {
  color: var(--expense-color);
  font-weight: 600;
}

/* Modal Popup Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(74, 62, 64, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary-light);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--expense-color);
}

.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background-color: #FAFAFA;
}

/* Full Financial Calendar Page */
.calendar-view-container {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 24px;
}

.calendar-board {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.calendar-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-board-title {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.calendar-grid-header {
  grid-column: span 7;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: var(--primary-light);
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 0;
}

.calendar-grid-day {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 90px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
  background-color: var(--card-bg);
}

.calendar-grid-day:nth-child(7n) {
  border-right: none;
}

.calendar-grid-day:hover {
  background-color: var(--primary-light);
}

.calendar-grid-day.other-month {
  background-color: #FAF8F9;
  color: #D2C9CB;
}

.calendar-grid-day.today {
  background-color: rgba(255, 112, 138, 0.05);
}

.calendar-grid-day.today .day-number {
  color: var(--primary);
  font-weight: 700;
  background-color: var(--primary-light);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.day-number {
  font-size: 12px;
  font-weight: 500;
}

.day-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  flex-grow: 1;
}

.event-tag {
  font-size: 9px;
  padding: 2px 4px;
  border-radius: 4px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.event-tag.income { background-color: var(--income-color); }
.event-tag.expense { background-color: var(--expense-color); }
.event-tag.warning { background-color: var(--warning-color); }
.event-tag.info { background-color: var(--info-color); }
.event-tag.accent { background-color: var(--accent-color); }

/* Accounts Grid */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.account-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.account-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.account-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.account-bank-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.bank-ktb { background-color: #00A3E0; color: white !important; }
.bank-scb { background-color: #4E2A84; color: white !important; }
.bank-kbank { background-color: #138F5C; color: white !important; }
.bank-truemoney { background-color: #FF8F00; color: white !important; }
.bank-make { background-color: #26C6DA; }
.bank-bbl { background-color: #0F4C81; }
.bank-dime { background-color: #000000; }
.bank-ttb { background-color: #FF5E00; }
.bank-other { background-color: var(--text-light); }

.account-balance-label {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
}

.account-balance {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.account-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* Debts & Goals UI Layouts */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.goal-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}

.goal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Projects Sub-Expenses Split List */
.project-split-container {
  margin-top: 16px;
  border: 1px dashed var(--border);
  padding: 16px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 112, 138, 0.01);
}

.project-split-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-split-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

/* Color theme selector inside Settings */
.theme-picker {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.theme-option {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.theme-option:hover {
  transform: scale(1.1);
}

.theme-option.active {
  border-color: var(--text);
  transform: scale(1.05);
}

.theme-option.theme-sakura { background: linear-gradient(135deg, #FFD2D6 0%, #FFF7F8 100%); }
.theme-option.theme-mint { background: linear-gradient(135deg, #95E1D3 0%, #F3FAF8 100%); }
.theme-option.theme-lavender { background: linear-gradient(135deg, #D5A4CF 0%, #FDF5FD 100%); }
.theme-option.theme-sunglow { background: linear-gradient(135deg, #FAD6A6 0%, #FFF8EF 100%); }

/* CSS Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Responsive CSS Styles */
@media (max-width: 1024px) {
  body, .app-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }
  
  .logo-container {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: none;
  }
  
  .nav-menu {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom: 8px;
    gap: 8px;
  }
  
  .nav-item {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .sidebar-footer {
    display: none;
  }
  
  .main-content {
    margin-left: 0;
    padding: 20px;
  }
  
  .dashboard-grid, .calendar-view-container, .charts-grid, .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .top-bar-actions {
    width: 100%;
    justify-content: space-between;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .main-content {
    padding: 12px;
  }
  
  .greeting-container h2 {
    font-size: 20px;
  }
  
  .logo-text h1 {
    font-size: 20px;
  }
}

/* Lock Screen Style */
.lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--background);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.lock-screen.active {
  display: flex;
}

.lock-screen-content {
  text-align: center;
  max-width: 360px;
  width: 100%;
  animation: fadeIn 0.4s ease-out;
}

.lock-avatar {
  width: 80px;
  height: 80px;
  background-color: var(--primary-light);
  border-radius: 50%;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: var(--shadow);
}

.pin-dots-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 28px 0;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background-color: transparent;
  transition: var(--transition);
}

.pin-dot.filled {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.pin-btn {
  height: 70px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: var(--card-bg);
  color: var(--text);
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pin-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  transform: scale(1.05);
}

.pin-btn i {
  font-size: 22px;
}

/* Face Scan Animation Overlays */
.face-scan-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 240, 242, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.face-scan-overlay.active {
  display: flex;
}

.scanner-box {
  background-color: var(--card-bg);
  border: 2px solid var(--border);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 320px;
  width: 100%;
}

.scanner-face-icon {
  font-size: 80px;
  color: var(--primary);
  animation: pulseScan 1.5s infinite;
  margin-bottom: 20px;
}

.scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: scanLine 2s infinite linear;
}

@keyframes scanLine {
  0% { top: 0; }
  50% { top: 100%; }
  100% { top: 0; }
}

@keyframes pulseScan {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}
