/**
 * KalviYogi CashBook - Main Stylesheet
 * Edunivra Pvt Ltd | 369 Tesla
 * Modern, Mobile-First Responsive Design - ORANGE THEME
 */

/* ============================================
   CSS Variables / Theme - ORANGE
   ============================================ */
:root {
    /* Primary Colors - ORANGE */
    --primary: #F97316;
    --primary-dark: #EA580C;
    --primary-light: #FB923C;
    --primary-50: #FFF7ED;
    --primary-100: #FFEDD5;
    --primary-200: #FED7AA;
    
    /* Secondary - Deep Orange/Amber */
    --secondary: #D97706;
    --secondary-dark: #B45309;
    --secondary-light: #FBBF24;
    
    /* Success/Cash In */
    --success: #10B981;
    --success-dark: #059669;
    --success-light: #34D399;
    --success-50: #ECFDF5;
    
    /* Danger/Cash Out */
    --danger: #EF4444;
    --danger-dark: #DC2626;
    --danger-light: #F87171;
    --danger-50: #FEF2F2;
    
    /* Warning */
    --warning: #F59E0B;
    --warning-dark: #D97706;
    --warning-50: #FFFBEB;
    
    /* Info */
    --info: #3B82F6;
    --info-dark: #2563EB;
    --info-50: #EFF6FF;
    
    /* Neutrals */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Background */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FFF7ED;
    --bg-tertiary: #FFEDD5;
    
    /* Text */
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    
    /* Border */
    --border-color: #FED7AA;
    --border-light: #FFEDD5;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(249, 115, 22, 0.05);
    --shadow: 0 1px 3px 0 rgba(249, 115, 22, 0.1), 0 1px 2px 0 rgba(249, 115, 22, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(249, 115, 22, 0.1), 0 2px 4px -1px rgba(249, 115, 22, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(249, 115, 22, 0.1), 0 4px 6px -2px rgba(249, 115, 22, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(249, 115, 22, 0.1), 0 10px 10px -5px rgba(249, 115, 22, 0.04);
    
    /* Sidebar */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 64px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Font */
    --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #F97316, #FB923C);
    --gradient-sunset: linear-gradient(135deg, #F97316, #D97706, #B45309);
    --gradient-warm: linear-gradient(135deg, #FFF7ED, #FFEDD5);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

button {
    font-family: inherit;
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-white { color: #FFFFFF; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ============================================
   Layout - App Container
   ============================================ */
.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left var(--transition-slow);
}

.main-content.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

.content-wrapper {
    padding: 24px;
    padding-top: calc(var(--header-height) + 24px);
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   Sidebar - ORANGE THEME
   ============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF7ED 100%);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: width var(--transition-slow), transform var(--transition-slow);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-brand {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-primary);
}

.sidebar-brand-logo {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.sidebar-brand-text {
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-brand-name {
    font-weight: 700;
    font-size: 1.125rem;
    color: white;
}

.sidebar-brand-tagline {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.8);
}

.sidebar.collapsed .sidebar-brand-text {
    display: none;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    padding: 0 12px;
    margin-bottom: 8px;
}

.sidebar.collapsed .nav-section-title {
    display: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
    margin-bottom: 4px;
}

.nav-item:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.nav-item.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.nav-item span {
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.collapsed .nav-item span {
    display: none;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: var(--primary-50);
}

.sidebar-footer-text {
    font-size: 0.6875rem;
    color: var(--primary);
    text-align: center;
}

.sidebar.collapsed .sidebar-footer-text {
    display: none;
}

/* ============================================
   Header - ORANGE THEME
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: linear-gradient(90deg, #FFFFFF 0%, #FFF7ED 100%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 999;
    transition: left var(--transition-slow);
}

.header.sidebar-collapsed {
    left: var(--sidebar-collapsed-width);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    color: var(--primary);
    font-size: 1.25rem;
}

.header-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-50);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--primary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.header-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--border-radius);
    transition: background var(--transition-fast);
}

.header-user:hover {
    background: var(--primary-50);
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow);
}

.header-user-info {
    display: none;
}

/* ============================================
   Cards - ORANGE THEME
   ============================================ */
.card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, var(--primary-50), transparent);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--primary-50);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* ============================================
   Buttons - ORANGE THEME
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: var(--success-dark);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: var(--danger-dark);
    color: white;
}

.btn-secondary {
    background: var(--primary-50);
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--primary-100);
    color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary-50);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--primary-50);
    color: var(--primary);
}

.btn-icon {
    padding: 8px;
    width: 36px;
    height: 36px;
}

.btn-block {
    width: 100%;
}

/* ============================================
   Forms - ORANGE THEME
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-label.required::after {
    content: '*';
    color: var(--danger);
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9375rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-50);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:disabled {
    background: var(--primary-50);
    cursor: not-allowed;
}

.form-control.error {
    border-color: var(--danger);
}

.form-control.error:focus {
    box-shadow: 0 0 0 3px var(--danger-50);
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-error {
    font-size: 0.8125rem;
    color: var(--danger);
    margin-top: 6px;
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    flex: 1;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.input-group-append {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--primary-50);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    color: var(--primary);
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-check-label {
    font-size: 0.9375rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Toggle Switch */
.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    width: 44px;
    height: 24px;
    background: var(--gray-300);
    border-radius: 12px;
    position: relative;
    transition: background var(--transition-fast);
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: var(--shadow);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(20px);
}

/* Select */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23F97316' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
}

/* ============================================
   Tables - ORANGE THEME
   ============================================ */
.table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

/* Prevent unwanted auto-scroll */
.table-wrapper:focus {
    outline: none;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-50);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.table tbody tr:hover {
    background: var(--primary-50);
}

.table-responsive td {
    white-space: nowrap;
}

/* ============================================
   Modals - ORANGE THEME
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(249, 115, 22, 0.2);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.modal {
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    overflow: visible;
    display: flex;
    flex-direction: column;
    margin: auto;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-lg {
    max-width: 700px;
}

.modal-xl {
    max-width: 900px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gradient-primary);
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
}

.modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 8px;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    max-height: calc(100vh - 200px);
    -webkit-overflow-scrolling: touch;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    background: var(--primary-50);
}

/* ============================================
   Tabs - ORANGE THEME
   ============================================ */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.tab {
    padding: 12px 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab:hover {
    color: var(--primary);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--primary-50);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   Badges & Tags - ORANGE THEME
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-primary {
    background: var(--primary-50);
    color: var(--primary);
}

.badge-success {
    background: var(--success-50);
    color: var(--success);
}

.badge-danger {
    background: var(--danger-50);
    color: var(--danger);
}

.badge-warning {
    background: var(--warning-50);
    color: var(--warning);
}

.badge-info {
    background: var(--info-50);
    color: var(--info);
}

.badge-gray {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* ============================================
   Dropdowns - ORANGE THEME
   ============================================ */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
}

.dropdown-menu.right {
    left: auto;
    right: 0;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.dropdown-item i {
    width: 16px;
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* ============================================
   Toast Notifications - ORANGE THEME
   ============================================ */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--primary);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-success {
    border-left-color: var(--success);
}

.toast-success .toast-icon {
    background: var(--success-50);
    color: var(--success);
}

.toast-error {
    border-left-color: var(--danger);
}

.toast-error .toast-icon {
    background: var(--danger-50);
    color: var(--danger);
}

.toast-warning {
    border-left-color: var(--warning);
}

.toast-warning .toast-icon {
    background: var(--warning-50);
    color: var(--warning);
}

.toast-info {
    border-left-color: var(--primary);
}

.toast-info .toast-icon {
    background: var(--primary-50);
    color: var(--primary);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    padding: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--primary);
}

/* ============================================
   Empty States
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 24px;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 2rem;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state-text {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ============================================
   Loading States
   ============================================ */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--primary-100);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 247, 237, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

/* ============================================
   Cash In / Cash Out Buttons
   ============================================ */
.cash-buttons {
    display: flex;
    gap: 12px;
}

.btn-cash-in {
    background: var(--success);
    color: white;
    flex: 1;
}

.btn-cash-in:hover {
    background: var(--success-dark);
    color: white;
}

.btn-cash-out {
    background: var(--danger);
    color: white;
    flex: 1;
}

.btn-cash-out:hover {
    background: var(--danger-dark);
    color: white;
}

/* ============================================
   Sticky Bottom Bar
   ============================================ */
.sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 280px;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
    z-index: 100;
    display: flex;
    gap: 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.sticky-bottom .btn {
    min-width: 150px;
}

.has-sticky-bottom .main-content {
    padding-bottom: 100px;
}

/* ============================================
   Book Cards - ORANGE THEME
   ============================================ */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.book-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    transition: all var(--transition);
    cursor: pointer;
}

.book-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.book-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.book-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    background: var(--gradient-primary);
}

.book-card-actions {
    display: flex;
    gap: 4px;
}

.book-card-action {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.book-card-action:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.book-card-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.book-card-balance {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.book-card-balance.positive {
    color: var(--success);
}

.book-card-balance.negative {
    color: var(--danger);
}

.book-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ============================================
   Transaction List - ORANGE THEME
   ============================================ */
.transaction-list {
    display: flex;
    flex-direction: column;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.transaction-item:hover {
    background: var(--primary-50);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transaction-icon.cash-in {
    background: var(--success-50);
    color: var(--success);
}

.transaction-icon.cash-out {
    background: var(--danger-50);
    color: var(--danger);
}

.transaction-details {
    flex: 1;
    min-width: 0;
}

.transaction-party {
    font-weight: 500;
    margin-bottom: 2px;
}

.transaction-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.transaction-amount {
    text-align: right;
}

.transaction-amount-value {
    font-weight: 600;
    font-size: 1rem;
}

.transaction-amount-value.cash-in {
    color: var(--success);
}

.transaction-amount-value.cash-out {
    color: var(--danger);
}

.transaction-balance {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ============================================
   Filters - ORANGE THEME
   ============================================ */
.filters-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 0;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-chip:hover {
    border-color: var(--primary);
    background: var(--primary-50);
}

.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.filter-chip i {
    font-size: 0.75rem;
}

/* ============================================
   Searchable Select - ORANGE THEME
   ============================================ */
.searchable-select {
    position: relative;
}

.searchable-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.searchable-select-trigger:hover {
    border-color: var(--primary);
}

.searchable-select.open .searchable-select-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-50);
}

.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-top: 4px;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    max-height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.searchable-select.open .searchable-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.searchable-select-search {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.searchable-select-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

.searchable-select-options {
    overflow-y: auto;
    max-height: 200px;
}

.searchable-select-option {
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.searchable-select-option:hover {
    background: var(--primary-50);
}

.searchable-select-option.selected {
    background: var(--primary-50);
    color: var(--primary);
}

.searchable-select-add {
    padding: 10px 14px;
    border-top: 1px solid var(--border-color);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background var(--transition-fast);
}

.searchable-select-add:hover {
    background: var(--primary-50);
}

/* ============================================
   Category Cards (Setup) - ORANGE THEME
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.category-card {
    padding: 24px 16px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.category-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-card.selected {
    border-color: var(--primary);
    background: var(--primary-50);
}

.category-card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all var(--transition);
}

.category-card.selected .category-card-icon {
    background: var(--gradient-primary);
    color: white;
}

.category-card-name {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ============================================
   Progress Steps - ORANGE THEME
   ============================================ */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.progress-step {
    width: 12px;
    height: 12px;
    background: var(--primary-200);
    border-radius: 50%;
    transition: all var(--transition);
}

.progress-step.active {
    background: var(--primary);
    transform: scale(1.2);
}

.progress-step.completed {
    background: var(--success);
}

/* ============================================
   File Upload - ORANGE THEME
   ============================================ */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
}

.file-upload:hover {
    border-color: var(--primary);
    background: var(--primary-50);
}

.file-upload.dragover {
    border-color: var(--primary);
    background: var(--primary-50);
}

.file-upload-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.file-upload-text {
    font-weight: 500;
    margin-bottom: 4px;
}

.file-upload-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.file-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: var(--danger);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Summary Cards - ORANGE THEME
   ============================================ */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px;
}

.summary-card-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.summary-card-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.summary-card.cash-in {
    border-left: 4px solid var(--success);
}

.summary-card.cash-in .summary-card-value {
    color: var(--success);
}

.summary-card.cash-out {
    border-left: 4px solid var(--danger);
}

.summary-card.cash-out .summary-card-value {
    color: var(--danger);
}

.summary-card.balance {
    border-left: 4px solid var(--primary);
}

.summary-card.balance .summary-card-value {
    color: var(--primary);
}

/* ============================================
   Auth Pages - ORANGE THEME
   ============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #FFF7ED, #FFEDD5, #FED7AA);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.auth-header {
    padding: 32px 32px 24px;
    text-align: center;
    background: var(--gradient-primary);
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    box-shadow: var(--shadow);
}

.auth-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: white;
}

.auth-subtitle {
    color: rgba(255,255,255,0.9);
}

.auth-body {
    padding: 32px;
}

.auth-footer {
    padding: 20px 32px;
    background: var(--primary-50);
    text-align: center;
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    font-weight: 600;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Alert Boxes */
.alert {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: var(--danger-50);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.alert-success {
    background: var(--success-50);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-warning {
    background: var(--warning-50);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.alert-info {
    background: var(--primary-50);
    color: var(--primary);
    border: 1px solid var(--primary);
}

/* ============================================
   Landing Page Specific Styles
   ============================================ */
.landing-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 50%, #FED7AA 100%);
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(100px);
}

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.landing-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.landing-nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.landing-nav-links a:hover {
    color: var(--primary);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.landing-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 40px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.landing-hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.landing-hero-buttons {
    display: flex;
    gap: 16px;
}

.landing-features {
    padding: 100px 40px;
    background: var(--bg-primary);
}

.landing-features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary-dark);
}

.landing-features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.landing-feature-card {
    padding: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all var(--transition);
}

.landing-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.landing-feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.75rem;
    color: white;
}

.landing-feature-card h3 {
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.landing-feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.landing-footer {
    background: var(--gray-900);
    color: white;
    padding: 60px 40px 30px;
}

.landing-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.landing-footer-brand h3 {
    color: var(--primary);
    margin-bottom: 16px;
}

.landing-footer-brand p {
    color: var(--gray-400);
    line-height: 1.6;
}

.landing-footer-links h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 1rem;
}

.landing-footer-links a {
    display: block;
    color: var(--gray-400);
    margin-bottom: 10px;
    transition: color var(--transition-fast);
}

.landing-footer-links a:hover {
    color: var(--primary);
}

.landing-footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 30px;
    text-align: center;
    color: var(--gray-500);
}

/* ============================================
   Admin Panel Specific Styles
   ============================================ */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.admin-stat-icon.primary {
    background: var(--primary-50);
    color: var(--primary);
}

.admin-stat-icon.success {
    background: var(--success-50);
    color: var(--success);
}

.admin-stat-icon.warning {
    background: var(--warning-50);
    color: var(--warning);
}

.admin-stat-icon.danger {
    background: var(--danger-50);
    color: var(--danger);
}

.admin-stat-info h3 {
    font-size: 1.75rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.admin-stat-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: var(--success-50);
    color: var(--success);
}

.status-pending {
    background: var(--warning-50);
    color: var(--warning);
}

.status-inactive {
    background: var(--danger-50);
    color: var(--danger);
}

.status-suspended {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .header-user-info {
        display: none;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .landing-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .landing-hero-buttons {
        justify-content: center;
    }
    
    .landing-footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Sidebar mobile */
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header {
        left: 0;
    }
    
    .header-toggle {
        display: flex;
    }
    
    .content-wrapper {
        padding: 16px;
        padding-top: calc(var(--header-height) + 16px);
    }
    
    /* Mobile overlay */
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(249, 115, 22, 0.3);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Tables responsive */
    .table-responsive {
        display: block;
    }
    
    .table-responsive thead {
        display: none;
    }
    
    .table-responsive tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .table-responsive tr {
        display: block;
        padding: 16px;
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
    }
    
    .table-responsive td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border: none;
    }
    
    .table-responsive td::before {
        content: attr(data-label);
        font-weight: 500;
        color: var(--text-muted);
    }
    
    /* Modal mobile */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
        overflow-y: auto;
    }
    
    .modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
        margin: 0;
        margin-top: auto;
    }
    
    .modal-body {
        max-height: calc(95vh - 180px);
    }
    
    /* Book cards */
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    /* Category grid */
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .category-card {
        padding: 16px 8px;
    }
    
    .category-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
        margin-bottom: 8px;
    }
    
    .category-card-name {
        font-size: 0.75rem;
    }
    
    /* Summary cards */
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    /* Filters */
    .filters-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 16px 0;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .filter-chip {
        flex-shrink: 0;
    }
    
    /* Transaction item mobile */
    .transaction-item {
        flex-wrap: wrap;
    }
    
    .transaction-details {
        order: 2;
        width: calc(100% - 56px);
    }
    
    .transaction-amount {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding-top: 12px;
        margin-top: 12px;
        border-top: 1px dashed var(--border-color);
    }
    
    /* Floating action buttons */
    .mobile-fab {
        position: fixed;
        bottom: 24px;
        right: 24px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        z-index: 100;
    }
    
    .mobile-fab .btn {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        padding: 0;
        box-shadow: var(--shadow-lg);
    }
    
    .mobile-fab .btn i {
        font-size: 1.25rem;
    }
    
    /* Sticky bottom bar */
    .sticky-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        padding: 12px 16px;
        z-index: 100;
        display: flex;
        gap: 12px;
    }
    
    .sticky-bottom .btn {
        flex: 1;
    }
    
    .has-sticky-bottom {
        padding-bottom: 80px;
    }
    
    /* Auth responsive */
    .auth-container {
        padding: 16px;
    }
    
    .auth-card {
        border-radius: var(--border-radius-lg);
    }
    
    .auth-header {
        padding: 24px;
    }
    
    .auth-body {
        padding: 24px;
    }
    
    .auth-footer {
        padding: 16px 24px;
    }
    
    /* Landing responsive */
    .landing-nav {
        padding: 16px 20px;
    }
    
    .landing-nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        border-radius: 0 0 16px 16px;
        display: none;
        z-index: 999;
    }
    
    .landing-nav-links.active {
        display: flex;
    }
    
    .landing-nav-links a {
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }
    
    .landing-nav-links .btn {
        margin: 8px 16px;
        width: calc(100% - 32px);
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .landing-hero-content {
        padding: 100px 20px 60px;
    }
    
    .landing-hero-text h1 {
        font-size: 2.25rem;
    }
    
    .landing-hero-text p {
        font-size: 1rem;
    }
    
    .landing-hero-buttons {
        flex-direction: column;
    }
    
    .landing-hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .landing-features {
        padding: 60px 20px;
    }
    
    .landing-features h2 {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }
    
    .landing-footer {
        padding: 40px 20px 20px;
    }
    
    .landing-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-dashboard {
        max-width: 100%;
        margin: 20px auto 0;
    }
    
    .hero-dashboard-stats {
        gap: 8px;
    }
    
    .hero-stat {
        padding: 12px 8px;
    }
    
    .hero-stat-value {
        font-size: 1.1rem !important;
    }
    
    .cta-section {
        padding: 60px 20px;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        min-width: 100%;
    }
    
    .cash-buttons {
        flex-direction: column;
    }
    
    .header-btn span {
        display: none;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Utilities
   ============================================ */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 24px; }

.m-0 { margin: 0 !important; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 24px; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-full { border-radius: 9999px; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.cursor-pointer { cursor: pointer; }

/* Hide scrollbar */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Print styles */
@media print {
    .sidebar,
    .header,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-wrapper {
        padding: 0;
        padding-top: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
