/* CORE BUNDLE - Generated by build-css-bundles.js */

/* ========== common.css ========== */
/* ============================================
   RUPIYA - COMMON STYLES
   Global styles, variables, and utilities
   ============================================ */

/* Import confirmation modal styles */
@import url('../confirmation-modal.css');

/* CSS Variables */
:root {
  /* Primary Colors */
  --primary-blue: #4A90E2;
  --primary-dark: #2C3E50;
  --primary-light: #ECF0F1;
  
  /* Accent Colors */
  --accent-green: #27AE60;
  --accent-red: #E74C3C;
  --accent-orange: #F39C12;
  --accent-purple: #9B59B6;
  --accent-cyan: #3498DB;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --medium-gray: #BDC3C7;
  --dark-gray: #7F8C8D;
  --black: #2C3E50;
  
  /* Background */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-hover: #F1F3F5;
  
  /* Text */
  --text-primary: #2C3E50;
  --text-secondary: #7F8C8D;
  --text-light: #BDC3C7;
  --text-white: #FFFFFF;
  
  /* Borders */
  --border-color: #E0E0E0;
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
  --shadow-xl: 0 12px 24px rgba(0,0,0,0.18);
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  
  /* Typography */
  --font-family: 'Inter', 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;
  --font-size-4xl: 36px;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-light { color: var(--text-light) !important; }
.text-white { color: var(--text-white) !important; }

.text-success { color: var(--accent-green) !important; }
.text-danger { color: var(--accent-red) !important; }
.text-warning { color: var(--accent-orange) !important; }
.text-info { color: var(--accent-cyan) !important; }

.bg-primary { background-color: var(--bg-primary) !important; }
.bg-secondary { background-color: var(--bg-secondary) !important; }
.bg-white { background-color: var(--white) !important; }

.fw-light { font-weight: 300; }
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }

.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }
.gap-5 { gap: var(--spacing-xl); }

.m-0 { margin: 0 !important; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.p-0 { padding: 0 !important; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--border-radius); }
.rounded-sm { border-radius: var(--border-radius-sm); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-xl { border-radius: var(--border-radius-xl); }
.rounded-circle { border-radius: 50%; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Page Header - Consistent spacing across all pages */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.page-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.page-subtitle {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin: 0;
}

.page-actions {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
  }
  
  .page-title {
    font-size: var(--font-size-2xl);
  }
  
  .page-actions {
    width: 100%;
  }
  
  .page-actions .btn {
    flex: 1;
  }
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-md);
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay .spinner {
  width: 60px;
  height: 60px;
  border-width: 5px;
  border-color: var(--primary-blue);
  border-top-color: transparent;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }
}

@media (max-width: 576px) {
  .d-sm-none { display: none !important; }
  .d-sm-block { display: block !important; }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--medium-gray);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-gray);
}

/* Focus Styles */
*:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}


/* ========== components.css ========== */
/* ============================================
   RUPIYA - COMPONENT STYLES
   Reusable component styles
   ============================================ */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 12px 24px;
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background-color: #3A7BC8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background-color: var(--accent-green);
  color: var(--white);
}

.btn-success:hover:not(:disabled) {
  background-color: #229954;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-danger:hover:not(:disabled) {
  background-color: #C0392B;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-warning {
  background-color: var(--accent-orange);
  color: var(--white);
}

.btn-warning:hover:not(:disabled) {
  background-color: #D68910;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-light {
  background-color: var(--light-gray);
  color: var(--text-primary);
}

.btn-light:hover:not(:disabled) {
  background-color: var(--medium-gray);
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--font-size-lg);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  padding: 12px;
  width: 44px;
  height: 44px;
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.card-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.card-body {
  padding: var(--spacing-lg);
}

.card-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

/* KPI Cards */
.kpi-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.kpi-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.kpi-value {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.kpi-subtitle {
  font-size: var(--font-size-xs);
  color: var(--text-light);
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.form-label.required::after {
  content: ' *';
  color: var(--accent-red);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
  outline: none;
}

.form-control:disabled {
  background-color: var(--light-gray);
  cursor: not-allowed;
  opacity: 0.6;
}

.form-control.is-invalid {
  border-color: var(--accent-red);
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-text {
  display: block;
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.invalid-feedback {
  display: none;
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--accent-red);
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

.form-select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  appearance: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.form-select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
  outline: none;
}

.form-check {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.form-check-input {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.form-check-label {
  font-size: var(--font-size-base);
  color: var(--text-primary);
  cursor: pointer;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border-radius: 12px;
}

.badge-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.badge-success {
  background-color: var(--accent-green);
  color: var(--white);
}

.badge-danger {
  background-color: var(--accent-red);
  color: var(--white);
}

.badge-warning {
  background-color: var(--accent-orange);
  color: var(--white);
}

.badge-info {
  background-color: var(--accent-cyan);
  color: var(--white);
}

.badge-light {
  background-color: var(--light-gray);
  color: var(--text-primary);
}

/* Alerts */
.alert {
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  margin-bottom: var(--spacing-md);
}

.alert-success {
  background-color: #D4EDDA;
  border-color: #C3E6CB;
  color: #155724;
}

.alert-danger {
  background-color: #F8D7DA;
  border-color: #F5C6CB;
  color: #721C24;
}

.alert-warning {
  background-color: #FFF3CD;
  border-color: #FFEAA7;
  color: #856404;
}

.alert-info {
  background-color: #D1ECF1;
  border-color: #BEE5EB;
  color: #0C5460;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table thead {
  background-color: var(--bg-secondary);
}

.table th {
  padding: var(--spacing-md);
  text-align: left;
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-color);
}

.table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.table tbody tr:hover {
  background-color: var(--bg-hover);
}

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

/* Pagination */
.pagination {
  display: flex;
  gap: var(--spacing-sm);
  list-style: none;
  padding: 0;
  margin: var(--spacing-lg) 0;
}

.pagination li {
  display: inline-block;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  color: var(--text-primary);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.pagination a:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.pagination .active a {
  background-color: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

/* Progress Bar */
.progress {
  height: 8px;
  background-color: var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-blue);
  transition: width var(--transition-base);
}

.progress-bar.bg-success {
  background-color: var(--accent-green);
}

.progress-bar.bg-danger {
  background-color: var(--accent-red);
}

.progress-bar.bg-warning {
  background-color: var(--accent-orange);
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 200px;
  padding: var(--spacing-sm) 0;
  margin-top: var(--spacing-xs);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-primary);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--bg-hover);
}

.dropdown-divider {
  height: 1px;
  margin: var(--spacing-sm) 0;
  background-color: var(--border-color);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--spacing-2xl);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: var(--spacing-md);
  opacity: 0.3;
}

.empty-state-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.empty-state-text {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}


/* ============================================
   LOGOUT MODAL STYLES
   ============================================ */

.logout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.logout-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.logout-modal-container {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
}

.logout-modal-overlay.show .logout-modal-container {
  transform: scale(1) translateY(0);
}

.logout-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  animation: logoutIconPulse 2s ease-in-out infinite;
}

@keyframes logoutIconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
  }
}

.logout-modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.logout-modal-message {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem 0;
  line-height: 1.6;
  font-weight: 500;
}

.logout-modal-submessage {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

.logout-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.logout-modal-btn {
  flex: 1;
  min-width: 160px;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.logout-modal-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.logout-modal-btn:hover::before {
  width: 300px;
  height: 300px;
}

.logout-modal-btn svg {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.logout-modal-btn-cancel,
.logout-modal-btn-confirm {
  position: relative;
  z-index: 1;
}

.logout-modal-btn-cancel {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.logout-modal-btn-cancel:hover {
  background: var(--bg-hover);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logout-modal-btn-cancel:active {
  transform: translateY(0);
}

.logout-modal-btn-confirm {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.logout-modal-btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.logout-modal-btn-confirm:active {
  transform: translateY(0);
}

.logout-modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.logout-modal-btn:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .logout-modal-container {
    padding: 2rem;
    max-width: 400px;
  }

  .logout-modal-icon {
    width: 70px;
    height: 70px;
  }

  .logout-modal-icon svg {
    width: 56px;
    height: 56px;
  }

  .logout-modal-title {
    font-size: 1.5rem;
  }

  .logout-modal-message {
    font-size: 1rem;
  }

  .logout-modal-submessage {
    font-size: 0.875rem;
  }

  .logout-modal-actions {
    flex-direction: column;
  }

  .logout-modal-btn {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .logout-modal-overlay {
    padding: 0.5rem;
  }

  .logout-modal-container {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .logout-modal-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }

  .logout-modal-icon svg {
    width: 48px;
    height: 48px;
  }

  .logout-modal-title {
    font-size: 1.25rem;
  }

  .logout-modal-message {
    font-size: 0.9375rem;
  }

  .logout-modal-submessage {
    font-size: 0.8125rem;
    margin-bottom: 1.5rem;
  }

  .logout-modal-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }
}

/* Dark Mode */
[data-theme="dark"] .logout-modal-container {
  background: var(--card-bg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .logout-modal-title {
  color: var(--text-primary);
}

[data-theme="dark"] .logout-modal-message {
  color: var(--text-secondary);
}

[data-theme="dark"] .logout-modal-submessage {
  color: var(--text-light);
}

[data-theme="dark"] .logout-modal-btn-cancel {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .logout-modal-btn-cancel:hover {
  background: var(--bg-hover);
  border-color: var(--text-secondary);
}

[data-theme="dark"] .logout-modal-btn:focus-visible {
  outline-color: var(--accent-cyan);
}


/* ========== dark-mode.css ========== */
/* ============================================
   DARK MODE STYLES
   Dark theme colors and overrides
   ============================================ */

/* Dark Mode Variables */
[data-theme="dark"] {
  /* Primary Colors */
  --primary-blue: #5BA3F5;
  --primary-dark: #E8EAED;
  --primary-light: #1E1E1E;
  
  /* Accent Colors */
  --accent-green: #4CAF50;
  --accent-red: #F44336;
  --accent-orange: #FF9800;
  --accent-purple: #AB47BC;
  --accent-cyan: #00BCD4;
  
  /* Neutral Colors */
  --white: #121212;
  --light-gray: #1E1E1E;
  --medium-gray: #424242;
  --dark-gray: #B0B0B0;
  --black: #E8EAED;
  
  /* Background */
  --bg-primary: #121212;
  --bg-secondary: #1E1E1E;
  --bg-card: #2C2C2C;
  --bg-hover: #3A3A3A;
  
  /* Text */
  --text-primary: #E8EAED;
  --text-secondary: #B0B0B0;
  --text-light: #757575;
  --text-white: #121212;
  
  /* Borders */
  --border-color: #424242;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.5);
  --shadow-xl: 0 12px 24px rgba(0,0,0,0.6);
}

/* Dark Mode Specific Overrides */
[data-theme="dark"] body {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

[data-theme="dark"] .sidebar {
  background: var(--bg-card);
  border-right-color: var(--border-color);
}

[data-theme="dark"] .nav-item {
  color: var(--text-secondary);
}

[data-theme="dark"] .nav-item:hover,
[data-theme="dark"] .nav-item.active {
  background: var(--bg-hover);
  color: var(--text-primary);
}

[data-theme="dark"] .nav-section-title {
  color: var(--text-light);
}

[data-theme="dark"] .main-content {
  background: var(--bg-secondary);
}

[data-theme="dark"] .kpi-card,
[data-theme="dark"] .chart-card,
[data-theme="dark"] .settings-card,
[data-theme="dark"] .expense-card,
[data-theme="dark"] .budget-card,
[data-theme="dark"] .goal-card,
[data-theme="dark"] .investment-card,
[data-theme="dark"] .note-card,
[data-theme="dark"] .document-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .kpi-card:hover,
[data-theme="dark"] .expense-card:hover,
[data-theme="dark"] .budget-card:hover,
[data-theme="dark"] .goal-card:hover {
  border-color: var(--primary-blue);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: var(--bg-hover);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  border-color: var(--primary-blue);
  background: var(--bg-card);
}

[data-theme="dark"] .btn-outline {
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .btn-outline:hover {
  background: var(--bg-hover);
  border-color: var(--primary-blue);
}

[data-theme="dark"] .modal-container {
  background: var(--bg-card);
}

[data-theme="dark"] .modal-overlay {
  background: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .filters-card,
[data-theme="dark"] .add-expense-section,
[data-theme="dark"] .add-budget-section,
[data-theme="dark"] .add-goal-section {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .empty-state {
  color: var(--text-secondary);
}

[data-theme="dark"] .table-container table {
  background: var(--bg-card);
}

[data-theme="dark"] .table-container th {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .table-container td {
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .table-container tr:hover {
  background: var(--bg-hover);
}

/* Dark mode toggle switch */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.theme-toggle-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--medium-gray);
  transition: all 0.3s ease;
  border-radius: 24px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary-blue);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.toggle-switch:hover .toggle-slider {
  background-color: var(--dark-gray);
}

.toggle-switch input:checked:hover + .toggle-slider {
  background-color: #357ABD;
}

/* Theme icons */
.theme-icon {
  font-size: 20px;
  transition: opacity 0.3s;
}

.theme-icon.sun {
  opacity: 1;
}

.theme-icon.moon {
  opacity: 0.5;
}

[data-theme="dark"] .theme-icon.sun {
  opacity: 0.5;
}

[data-theme="dark"] .theme-icon.moon {
  opacity: 1;
}

/* Smooth transition for theme change */
body,
.sidebar,
.main-content,
.kpi-card,
.chart-card,
input,
select,
textarea,
.btn-outline {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dashboard Widgets Dark Mode */
[data-theme="dark"] .savings-rate-widget,
[data-theme="dark"] .goal-progress-widget,
[data-theme="dark"] .top-categories-widget,
[data-theme="dark"] .upcoming-bills-widget,
[data-theme="dark"] .transactions-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .savings-rate-widget:hover,
[data-theme="dark"] .goal-progress-widget:hover,
[data-theme="dark"] .top-categories-widget:hover,
[data-theme="dark"] .upcoming-bills-widget:hover {
  border-color: var(--primary-blue);
}

[data-theme="dark"] .savings-rate-bar,
[data-theme="dark"] .goal-progress-bar,
[data-theme="dark"] .category-bar {
  background: var(--bg-hover);
}

[data-theme="dark"] .savings-detail {
  background: var(--bg-hover);
}

[data-theme="dark"] .savings-rate-tip {
  background: rgba(91, 163, 245, 0.15);
  border-left-color: var(--primary-blue);
}

[data-theme="dark"] .category-item:hover {
  background: var(--bg-hover);
}

[data-theme="dark"] .category-icon {
  background: var(--bg-hover);
}

[data-theme="dark"] .bill-item {
  background: var(--bg-hover);
}

[data-theme="dark"] .bill-item.due-soon {
  background: rgba(244, 67, 54, 0.1);
}

[data-theme="dark"] .spending-alert {
  background: rgba(244, 67, 54, 0.15);
  border-color: var(--accent-red);
}

[data-theme="dark"] .transaction-item {
  border-color: var(--border-color);
}

[data-theme="dark"] .transaction-item:hover {
  background: var(--bg-hover);
  border-color: var(--primary-blue);
}

[data-theme="dark"] .transaction-icon {
  background: var(--bg-hover);
}

[data-theme="dark"] .mobile-header {
  background: var(--bg-card);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .chart-filter {
  background: var(--bg-hover);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .chart-filter:hover,
[data-theme="dark"] .chart-filter:focus {
  border-color: var(--primary-blue);
}


/* ========== animations.css ========== */
/* ============================================
   RUPIYA - ANIMATIONS & ENHANCED MOBILE CSS
   Global animations and mobile optimizations
   ============================================ */

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */

/* Fade animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale animations */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Bounce animation */
@keyframes bounce {
  0%, 20%, 53%, 100% {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translateY(0);
  }
  40%, 43% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translateY(-15px);
  }
  70% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translateY(-7px);
  }
  80% {
    transform: translateY(0);
  }
  90% {
    transform: translateY(-3px);
  }
}

/* Pulse animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.4);
  }
  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(74, 144, 226, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
  }
}

/* Shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Slide animations */
@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Shimmer loading animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Float animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Glow animation */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.8);
  }
}

/* Counter animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   ANIMATION UTILITY CLASSES
   ============================================ */

.animate-fadeIn { animation: fadeIn 0.5s ease-out forwards; }
.animate-fadeInUp { animation: fadeInUp 0.5s ease-out forwards; }
.animate-fadeInDown { animation: fadeInDown 0.5s ease-out forwards; }
.animate-fadeInLeft { animation: fadeInLeft 0.5s ease-out forwards; }
.animate-fadeInRight { animation: fadeInRight 0.5s ease-out forwards; }
.animate-scaleIn { animation: scaleIn 0.4s ease-out forwards; }
.animate-popIn { animation: popIn 0.4s ease-out forwards; }
.animate-bounce { animation: bounce 1s ease-in-out; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-shake { animation: shake 0.5s ease-in-out; }
.animate-slideInUp { animation: slideInUp 0.5s ease-out forwards; }
.animate-slideInDown { animation: slideInDown 0.5s ease-out forwards; }
.animate-slideInLeft { animation: slideInLeft 0.5s ease-out forwards; }
.animate-slideInRight { animation: slideInRight 0.5s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }

/* Animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* Animation durations */
.duration-fast { animation-duration: 0.2s; }
.duration-normal { animation-duration: 0.5s; }
.duration-slow { animation-duration: 0.8s; }

/* ============================================
   ENHANCED TRANSITIONS
   ============================================ */

/* Smooth transitions for interactive elements */
.transition-all {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-transform {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-opacity {
  transition: opacity 0.3s ease;
}

.transition-colors {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.02);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
}

/* ============================================
   LOADING STATES
   ============================================ */

/* Skeleton loading */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--light-gray) 25%,
    #e8e8e8 50%,
    var(--light-gray) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-radius);
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
}

.skeleton-title {
  height: 1.5em;
  width: 60%;
  margin-bottom: 0.75em;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-card {
  height: 120px;
}

/* Loading spinner enhancements */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
}

.spinner-lg {
  width: 48px;
  height: 48px;
  border: 4px solid var(--light-gray);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================
   ENHANCED CARD ANIMATIONS
   ============================================ */

/* Card entrance animation */
.card-animated {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Staggered card animations */
.card-animated:nth-child(1) { animation-delay: 0ms; }
.card-animated:nth-child(2) { animation-delay: 100ms; }
.card-animated:nth-child(3) { animation-delay: 200ms; }
.card-animated:nth-child(4) { animation-delay: 300ms; }
.card-animated:nth-child(5) { animation-delay: 400ms; }
.card-animated:nth-child(6) { animation-delay: 500ms; }

/* KPI card number animation */
.kpi-value-animated {
  animation: countUp 0.6s ease-out forwards;
}

/* ============================================
   BUTTON ANIMATIONS
   ============================================ */

/* Button press effect */
.btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active:not(:disabled) {
  transform: scale(0.96);
}

/* Button ripple effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:active::after {
  width: 300px;
  height: 300px;
}

/* ============================================
   FORM ANIMATIONS
   ============================================ */

/* Input focus animation */
.form-control,
.form-select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  transform: translateY(-1px);
}

/* Form group animation */
.form-group-animated {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease-out forwards;
}

/* Error shake animation */
.form-control.is-invalid {
  animation: shake 0.4s ease-in-out;
}

/* ============================================
   MODAL ANIMATIONS
   ============================================ */

.modal-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
}

.modal-container {
  transform: scale(0.9) translateY(-20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.modal-overlay.show .modal-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ============================================
   LIST ITEM ANIMATIONS
   ============================================ */

.list-item-animated {
  opacity: 0;
  transform: translateX(-10px);
  animation: fadeInLeft 0.3s ease-out forwards;
}

/* Transaction item hover */
.transaction-item {
  transition: all 0.2s ease;
}

.transaction-item:hover {
  transform: translateX(4px);
}

/* ============================================
   TOAST ANIMATIONS
   ============================================ */

.toast-enter {
  animation: slideInRight 0.3s ease-out forwards;
}

.toast-exit {
  animation: fadeInRight 0.3s ease-out reverse forwards;
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */

.page-enter {
  animation: fadeInUp 0.4s ease-out forwards;
}

.page-content {
  animation: fadeIn 0.3s ease-out;
}

/* ============================================
   SCROLL ANIMATIONS (Intersection Observer)
   ============================================ */

.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   PROGRESS BAR ANIMATIONS
   ============================================ */

.progress-bar {
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-animated {
  animation: progressGrow 1s ease-out forwards;
}

@keyframes progressGrow {
  from { width: 0; }
}

/* ============================================
   ICON ANIMATIONS
   ============================================ */

.icon-spin {
  animation: spin 1s linear infinite;
}

.icon-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.icon-bounce {
  animation: bounce 1s ease-in-out infinite;
}

/* ============================================
   MOBILE-SPECIFIC ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
  /* Reduce animation duration on mobile for better performance */
  .animate-fadeInUp,
  .animate-fadeInDown,
  .animate-fadeInLeft,
  .animate-fadeInRight {
    animation-duration: 0.3s;
  }
  
  /* Disable hover effects on touch devices */
  @media (hover: none) {
    .hover-lift:hover,
    .hover-scale:hover {
      transform: none;
      box-shadow: inherit;
    }
  }
  
  /* Touch-friendly tap feedback */
  .tap-highlight {
    -webkit-tap-highlight-color: rgba(74, 144, 226, 0.2);
  }
  
  /* Smooth scrolling for mobile */
  .scroll-smooth {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  
  /* Pull to refresh indicator */
  .pull-indicator {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 9999;
  }
  
  .pull-indicator.visible {
    transform: translateX(-50%) translateY(20px);
  }
}

/* ============================================
   REDUCED MOTION PREFERENCE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .scroll-animate,
  .scroll-animate-left,
  .scroll-animate-right {
    opacity: 1;
    transform: none;
  }
}


/* ========== loading.css ========== */
/* ============================================
   RUPIYA - LOADING STATES
   Loading overlays, spinners, and skeletons
   ============================================ */

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity var(--transition-base);
}

.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-overlay-content {
  text-align: center;
}

.loading-overlay-text {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Spinners */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(74, 144, 226, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary-blue);
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.spinner-lg {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

.spinner-xl {
  width: 64px;
  height: 64px;
  border-width: 5px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Button Loading State */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.6s linear infinite;
}

/* Skeleton Screens */
.skeleton {
  background: linear-gradient(
    90deg,
    #f0f0f0 0%,
    #e0e0e0 20%,
    #f0f0f0 40%,
    #f0f0f0 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--border-radius);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-text:last-child {
  width: 80%;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 12px;
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.skeleton-card {
  height: 200px;
  border-radius: var(--border-radius-lg);
}

.skeleton-button {
  height: 44px;
  width: 120px;
  border-radius: var(--border-radius);
}

/* Skeleton KPI Card */
.skeleton-kpi-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
}

.skeleton-kpi-label {
  height: 14px;
  width: 40%;
  margin-bottom: 12px;
}

.skeleton-kpi-value {
  height: 32px;
  width: 60%;
  margin-bottom: 8px;
}

.skeleton-kpi-subtitle {
  height: 12px;
  width: 50%;
}

/* Skeleton Table */
.skeleton-table {
  width: 100%;
}

.skeleton-table-row {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.skeleton-table-cell {
  height: 16px;
  flex: 1;
}

/* Progress Bar */
.progress-bar-container {
  width: 100%;
  height: 4px;
  background-color: var(--light-gray);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--primary-blue);
  transition: width var(--transition-base);
}

.progress-bar-indeterminate {
  width: 30%;
  animation: progress-indeterminate 1.5s ease-in-out infinite;
}

@keyframes progress-indeterminate {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(400%);
  }
}

/* Circular Progress */
.circular-progress {
  width: 48px;
  height: 48px;
  position: relative;
}

.circular-progress svg {
  transform: rotate(-90deg);
}

.circular-progress-circle {
  fill: none;
  stroke: var(--light-gray);
  stroke-width: 4;
}

.circular-progress-value {
  fill: none;
  stroke: var(--primary-blue);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset var(--transition-base);
}

/* Pulse Animation */
.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Shimmer Effect */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Loading Dots */
.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-blue);
  border-radius: 50%;
  animation: loading-dot 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(1) {
  animation-delay: 0s;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loading-dot {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Content Loading State */
.content-loading {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card Loading State */
.card-loading {
  position: relative;
  pointer-events: none;
}

.card-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Table Loading State */
.table-loading {
  position: relative;
  min-height: 200px;
}

.table-loading tbody {
  opacity: 0.5;
  pointer-events: none;
}

/* Form Loading State */
.form-loading {
  position: relative;
  pointer-events: none;
}

.form-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Lazy Loading Image */
.lazy-image {
  opacity: 0;
  transition: opacity var(--transition-base);
}

.lazy-image.loaded {
  opacity: 1;
}

.lazy-image-placeholder {
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .spinner-lg {
    width: 40px;
    height: 40px;
  }

  .skeleton-kpi-card {
    padding: 16px;
  }

  .loading-overlay-text {
    font-size: 14px;
  }
}



/* ============================================
   CONSISTENT ANIMATION TIMING
   Unified animation durations and easing
   ============================================ */

/* Animation duration classes */
.animation-instant {
  animation-duration: 0ms;
}

.animation-fast {
  animation-duration: 150ms;
}

.animation-base {
  animation-duration: 300ms;
}

.animation-slow {
  animation-duration: 500ms;
}

.animation-slower {
  animation-duration: 750ms;
}

.animation-slowest {
  animation-duration: 1000ms;
}

/* Easing function classes */
.easing-linear {
  animation-timing-function: linear;
}

.easing-ease-in {
  animation-timing-function: ease-in;
}

.easing-ease-out {
  animation-timing-function: ease-out;
}

.easing-ease-in-out {
  animation-timing-function: ease-in-out;
}

.easing-ease-out-back {
  animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.easing-ease-in-out-back {
  animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Transition duration classes */
.transition-instant {
  transition-duration: 0ms;
}

.transition-fast {
  transition-duration: 150ms;
}

.transition-base {
  transition-duration: 300ms;
}

.transition-slow {
  transition-duration: 500ms;
}

.transition-slower {
  transition-duration: 750ms;
}

.transition-slowest {
  transition-duration: 1000ms;
}

/* Transition easing classes */
.transition-linear {
  transition-timing-function: linear;
}

.transition-ease-in {
  transition-timing-function: ease-in;
}

.transition-ease-out {
  transition-timing-function: ease-out;
}

.transition-ease-in-out {
  transition-timing-function: ease-in-out;
}

.transition-ease-out-back {
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.transition-ease-in-out-back {
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Skeleton screen shimmer with consistent timing */
.skeleton-screen {
  animation: shimmer 1500ms linear infinite;
}

/* Button loading state with consistent timing */
.button-loading {
  animation: spin 1000ms linear infinite;
}

/* Fade in animation with consistent timing */
.fade-in {
  animation: fadeIn 300ms ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Fade out animation with consistent timing */
.fade-out {
  animation: fadeOut 300ms ease-in forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Slide in from left with consistent timing */
.slide-in-left {
  animation: slideInLeft 300ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Slide in from right with consistent timing */
.slide-in-right {
  animation: slideInRight 300ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Scale up animation with consistent timing */
.scale-up {
  animation: scaleUp 300ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleUp {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Scale down animation with consistent timing */
.scale-down {
  animation: scaleDown 300ms ease-in forwards;
}

@keyframes scaleDown {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.95);
    opacity: 0;
  }
}

/* Bounce animation with consistent timing */
.bounce {
  animation: bounce 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

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

/* Pulse animation with consistent timing */
.pulse-animation {
  animation: pulseAnimation 2000ms ease-in-out infinite;
}

@keyframes pulseAnimation {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}


/* ========== logout-modal.css ========== */
/* ============================================
   LOGOUT MODAL STYLES
   ============================================ */

.logout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
  pointer-events: none;
}

.logout-modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.logout-modal-container {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
}

.logout-modal-overlay.show .logout-modal-container {
  transform: scale(1) translateY(0);
}

.logout-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
  }
}

.logout-modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.logout-modal-message {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem 0;
  line-height: 1.6;
  font-weight: 500;
}

.logout-modal-submessage {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

.logout-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.logout-modal-btn {
  flex: 1;
  min-width: 160px;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.logout-modal-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.logout-modal-btn:hover::before {
  width: 300px;
  height: 300px;
}

.logout-modal-btn svg {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.logout-modal-btn span,
.logout-modal-btn-cancel,
.logout-modal-btn-confirm {
  position: relative;
  z-index: 1;
}

.logout-modal-btn-cancel {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.logout-modal-btn-cancel:hover {
  background: var(--bg-hover);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logout-modal-btn-cancel:active {
  transform: translateY(0);
}

.logout-modal-btn-confirm {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.logout-modal-btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.logout-modal-btn-confirm:active {
  transform: translateY(0);
}

.logout-modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Loading state */
.logout-modal-btn.loading {
  pointer-events: none;
}

.logout-modal-btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

@media (max-width: 768px) {
  .logout-modal-container {
    padding: 2rem;
    max-width: 400px;
  }

  .logout-modal-icon {
    width: 70px;
    height: 70px;
  }

  .logout-modal-icon svg {
    width: 56px;
    height: 56px;
  }

  .logout-modal-title {
    font-size: 1.5rem;
  }

  .logout-modal-message {
    font-size: 1rem;
  }

  .logout-modal-submessage {
    font-size: 0.875rem;
  }

  .logout-modal-actions {
    flex-direction: column;
  }

  .logout-modal-btn {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .logout-modal-overlay {
    padding: 0.5rem;
  }

  .logout-modal-container {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .logout-modal-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }

  .logout-modal-icon svg {
    width: 48px;
    height: 48px;
  }

  .logout-modal-title {
    font-size: 1.25rem;
  }

  .logout-modal-message {
    font-size: 0.9375rem;
  }

  .logout-modal-submessage {
    font-size: 0.8125rem;
    margin-bottom: 1.5rem;
  }

  .logout-modal-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }
}

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

[data-theme="dark"] .logout-modal-container {
  background: var(--card-bg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .logout-modal-title {
  color: var(--text-primary);
}

[data-theme="dark"] .logout-modal-message {
  color: var(--text-secondary);
}

[data-theme="dark"] .logout-modal-submessage {
  color: var(--text-light);
}

[data-theme="dark"] .logout-modal-btn-cancel {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .logout-modal-btn-cancel:hover {
  background: var(--bg-hover);
  border-color: var(--text-secondary);
}

/* Accessibility */
.logout-modal-btn:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

[data-theme="dark"] .logout-modal-btn:focus-visible {
  outline-color: var(--accent-cyan);
}


