/* =====================================================
   TSR Financial Design System
   Professional & Trustworthy - Banking/Finance Theme
   ===================================================== */

/* ==================== Financial Color Palette ==================== */
:root {
    /* Primary - Deep Navy (Trust & Stability) */
    --primary: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0f2340;
    --primary-50: #ebf4ff;

    /* Secondary - Teal (Growth & Prosperity) */
    --secondary: #0d9488;
    --secondary-light: #14b8a6;
    --secondary-dark: #0f766e;

    /* Accent - Gold (Wealth & Premium) */
    --accent: #d69e2e;
    --accent-light: #ecc94b;
    --accent-dark: #b7791f;

    /* Success - Emerald Green (Profit & Growth) */
    --success: #059669;
    --success-light: #10b981;
    --success-dark: #047857;

    /* Warning - Amber */
    --warning: #d97706;
    --warning-light: #f59e0b;
    --warning-dark: #b45309;

    /* Danger - Red */
    --danger: #dc2626;
    --danger-light: #ef4444;
    --danger-dark: #b91c1c;

    /* Info - Cyan */
    --info: #0891b2;
    --info-light: #06b6d4;
    --info-dark: #0e7490;

    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --text-white: #ffffff;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-input: #f8fafc;
    --bg-nav: #1a365d;

    /* Borders */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-full: 9999px;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;

    /* Transitions */
    --transition: 0.25s ease;
}

/* ==================== Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-light);
}

/* ==================== Top Navigation ==================== */
.top-navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.navbar-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.navbar-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    letter-spacing: 0.5px;
}

.navbar-logo::before {
    content: '💰';
    font-size: 1.5rem;
}

.navbar-logo:hover {
    color: white !important;
    text-decoration: none;
}

/* Navigation Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
}

.navbar-menu>li {
    position: relative;
}

.navbar-menu>li>a,
.navbar-menu>li>button {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.navbar-menu>li>a:hover,
.navbar-menu>li>button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.navbar-menu>li>a.active {
    background: rgba(255, 255, 255, 0.18);
    color: white;
}

.dropdown-icon {
    font-size: 10px;
    transition: var(--transition);
}

.dropdown.open .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 0;
    min-width: 240px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    border: 1px solid var(--border-color);
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.dropdown-menu a.active {
    background: var(--primary-50);
    color: var(--primary);
}

.dropdown-menu .icon {
    font-size: 14px;
    width: 20px;
    color: var(--text-secondary);
}

/* User Profile Dropdown */
.user-button {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: var(--transition);
    color: white;
}

.user-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.user-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.user-dropdown .dropdown-menu {
    right: 0;
    left: auto;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: var(--space-2);
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

/* ==================== Main Content ==================== */
.app-container {
    width: 100%;
    max-width: 100%;
    padding: var(--space-6);
    flex: 1 0 auto;
}

/* ==================== Page Header ==================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding: var(--space-6);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    color: white;
    box-shadow: var(--shadow-md);
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.page-header h1 i {
    font-size: 1.25rem;
    opacity: 0.9;
}

.page-header .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.page-header .btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==================== Cards ==================== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: var(--space-6);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: var(--space-5) var(--space-6);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-weight: 600;
    border-bottom: none;
}

.card-header h3 {
    margin: 0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.card-body {
    padding: var(--space-6);
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.card h3 i {
    color: var(--primary);
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 54, 93, 0.35);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-success:hover {
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-light) 100%);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-light) 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-info {
    background: linear-gradient(135deg, var(--info) 0%, var(--info-light) 100%);
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-block {
    width: 100%;
    display: flex;
}

/* ==================== Tables ==================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: white;
}

thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

th {
    padding: var(--space-4) var(--space-5);
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

td {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border-light);
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background: var(--gray-50);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ==================== Forms ==================== */
.form-group {
    margin-bottom: var(--space-5);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-size: 15px;
}

.form-group label i {
    color: var(--primary);
    margin-right: var(--space-2);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.1);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

select.form-control {
    cursor: pointer;
    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='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 44px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

/* ==================== Badges ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: rgba(26, 54, 93, 0.12);
    color: var(--primary);
}

.badge-success {
    background: rgba(5, 150, 105, 0.12);
    color: var(--success);
}

.badge-warning {
    background: rgba(217, 119, 6, 0.12);
    color: var(--warning);
}

.badge-danger {
    background: rgba(220, 38, 38, 0.12);
    color: var(--danger);
}

.badge-secondary {
    background: var(--gray-100);
    color: var(--text-secondary);
}

.badge-info {
    background: rgba(8, 145, 178, 0.12);
    color: var(--info);
}

/* ==================== Alerts ==================== */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    border-left: 4px solid;
}

.alert-success {
    background: rgba(5, 150, 105, 0.08);
    border-color: var(--success);
    color: var(--success-dark);
}

.alert-danger {
    background: rgba(220, 38, 38, 0.08);
    border-color: var(--danger);
    color: var(--danger-dark);
}

.alert-warning {
    background: rgba(217, 119, 6, 0.08);
    border-color: var(--warning);
    color: var(--warning-dark);
}

.alert-info {
    background: rgba(8, 145, 178, 0.08);
    border-color: var(--info);
    color: var(--info-dark);
}

/* ==================== Stats Cards ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card.blue::before {
    background: var(--primary);
}

.stat-card.green::before {
    background: var(--success);
}

.stat-card.orange::before {
    background: var(--warning);
}

.stat-card.red::before {
    background: var(--danger);
}

.stat-card.teal::before {
    background: var(--secondary);
}

.stat-card.yellow::before {
    background: var(--accent);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.stat-card.blue .stat-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.stat-card.green .stat-icon {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
}

.stat-card.orange .stat-icon {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-light) 100%);
}

.stat-card.red .stat-icon {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-light) 100%);
}

.stat-card.teal .stat-icon {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
}

.stat-card.yellow .stat-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 2px;
}

.stat-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--primary);
    margin-top: 8px;
}

/* ==================== Auth Pages ==================== */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-6);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
}

.auth-card h1 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--primary);
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

/* ==================== Footer ==================== */
.main-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
}

.footer-top {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.footer-brand-text h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
}

.footer-brand-text p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

.footer-links h5 {
    margin: 0 0 1rem 0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.85;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-links a i {
    width: 16px;
    font-size: 13px;
}

.footer-contact p {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.85;
}

.footer-contact i {
    width: 16px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 2rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ==================== Action Buttons ==================== */
.action-btns {
    display: flex;
    gap: var(--space-2);
}

/* ==================== Modal ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: var(--space-4);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    transform: scale(0.9);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: var(--space-5) var(--space-6);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: var(--space-6);
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.modal-footer {
    padding: var(--space-4) var(--space-6);
    background: var(--gray-50);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    flex-shrink: 0;
}

.modal form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ==================== Data Tables ==================== */
.data-table {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.data-table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    color: white !important;
}

.data-table td {
    background: white;
}

/* ==================== Utilities ==================== */
.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-4 {
    margin-bottom: var(--space-4) !important;
}

.mb-6 {
    margin-bottom: var(--space-6) !important;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 var(--space-4);
    }

    .app-container {
        padding: var(--space-4);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-4);
        gap: var(--space-2);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .navbar-menu>li>a,
    .navbar-menu>li>button {
        justify-content: flex-start;
        padding: var(--space-3) var(--space-4);
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.08);
        margin-top: var(--space-2);
        border: none;
    }

    .dropdown-menu a {
        color: white;
    }

    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .user-dropdown .dropdown-menu {
        right: auto;
        left: 0;
    }

    .page-header {
        flex-direction: column;
        text-align: center;
        padding: var(--space-4);
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 14px;
    }

    th,
    td {
        padding: var(--space-3);
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem;
    }

    .footer-brand {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: var(--space-3);
    }

    .card-body {
        padding: var(--space-4);
    }

    .page-header {
        border-radius: var(--radius-md);
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

/* =====================================================
   Financial Theme Enhancements (Consolidated)
   ===================================================== */

/* Gradients */
.navy-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
}

.teal-gradient {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    color: white;
}

.red-gradient {
    background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%);
    color: white;
}

.gold-gradient {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    color: white;
}

/* Financial Stats Grid */
.financial-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.financial-stats-grid .stat-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border: none;
}

.financial-stats-grid .stat-card:hover {
    transform: translateY(-5px);
}

.financial-stats-grid .stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-right: 1rem;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.financial-stats-grid .stat-info {
    z-index: 10;
}

.financial-stats-grid .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
    display: block;
    color: rgba(255, 255, 255, 0.9);
}

.financial-stats-grid .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    display: block;
    color: white;
}

.financial-stats-grid .stat-desc {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.25rem;
    display: block;
    color: rgba(255, 255, 255, 0.8);
}

.financial-stats-grid .stat-decoration {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 8rem;
    opacity: 0.1;
    transform: rotate(-15deg);
    pointer-events: none;
}

@media (max-width: 992px) {
    .financial-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Content Card */
.content-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.content-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07),
        0 12px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.content-card .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 1.75rem 2.25rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-primary);
}

.content-card .card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.01em;
}

.content-card .card-title i {
    color: var(--primary);
    font-size: 1.5rem;
}

/* Search Box */
.search-box {
    position: relative;
    max-width: 300px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-box input {
    padding: 0.6rem 1rem 0.6rem 2.8rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    width: 250px;
    transition: all 0.2s;
}

.search-box input:focus {
    width: 300px;
    border-color: var(--primary);
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Financial Table */
.financial-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.financial-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    padding: 1rem 1.5rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
}

.financial-table td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    background: white;
}

.financial-table tr:hover td {
    background: #f8fafc;
}

.row-index {
    color: #94a3b8;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.bank-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bank-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bank-details {
    display: flex;
    flex-direction: column;
}

.bank-name {
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
}

.account-number-badge {
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.5px;
    border: 1px solid #e2e8f0;
    display: inline-block;
    font-size: 0.75rem;
    margin-top: 2px;
}

/* Status Badges */
.status-badge,
.type-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.type-savings {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #bae6fd;
}

.type-current {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

/* Action Buttons */
.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 0.25rem;
}

.btn-edit {
    background: #eff6ff;
    color: var(--primary);
}

.btn-edit:hover {
    background: var(--primary);
    color: white;
}

.btn-delete {
    background: #fee2e2;
    color: #ef4444;
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
}

/* Financial Modal */
.financial-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    padding: 1rem;
}

.financial-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.financial-modal {
    width: 100%;
    background: white;
    max-width: 600px;
    max-height: calc(100vh - 40px);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.financial-modal .modal-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.financial-modal .header-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.financial-modal .header-text h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.financial-modal .header-text p {
    margin: 4px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 400;
}

.financial-modal .modal-close {
    margin-left: auto;
}

.financial-modal .close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.financial-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.financial-modal .modal-body {
    padding: 2rem;
    background: #f8fafc;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Custom scrollbar for financial modal */
.financial-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.financial-modal .modal-body::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.financial-modal .modal-body::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

.financial-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.financial-modal .modal-footer {
    padding: 1.5rem 2rem;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-shrink: 0;
}

/* Financial modal responsive */
@media (max-width: 640px) {
    .financial-modal-overlay {
        padding: 0.5rem;
    }

    .financial-modal {
        max-height: calc(100vh - 20px);
        border-radius: 16px;
    }

    .financial-modal .modal-header {
        padding: 1rem 1.25rem;
    }

    .financial-modal .modal-body {
        padding: 1.25rem;
    }

    .financial-modal .modal-footer {
        padding: 1rem 1.25rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.full-width {
    grid-column: span 2;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 5;
}

.input-with-icon input,
.custom-select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.input-with-icon input:focus,
.custom-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* Spinner */
.modal-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    backdrop-filter: blur(2px);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #fdfdfd;
}

.pagination-info {
    color: #64748b;
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-page {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    background: white;
}

.btn-page:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: #eff6ff;
}

.btn-page.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-page.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #f1f5f9;
    color: #94a3b8;
}

.page-dots {
    color: #94a3b8;
    padding: 0 0.25rem;
}

/* Additional Utilities for Account Balances */
.file-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.file-link-badge:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 0.9rem;
}

.currency-unit {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: normal;
    margin-left: 2px;
}

/* Shine Effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    100% {
        left: 200%;
    }
}

/* Empty State */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state .empty-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #475569;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

/* =====================================================
   File Preview Tooltip (Hover Effect)
   ===================================================== */
.file-preview-tooltip {
    position: fixed;
    z-index: 9999;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    display: none;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    max-width: 360px;
    max-height: 360px;
}

.file-preview-tooltip.active {
    opacity: 1;
}

.file-preview-tooltip img {
    max-width: 100%;
    max-height: 340px;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: contain;
}

.file-preview-loading {
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* =====================================================
   History Page Styles (Timeline & Account Info)
   ===================================================== */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--text-secondary);
}

.breadcrumb .current {
    color: var(--text-secondary);
}

/* Account Info Card */
.account-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.account-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.account-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.account-details h2 {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.account-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.9;
}

.account-number {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.account-name {
    font-weight: 500;
}

.separator {
    opacity: 0.5;
}

/* Account Stats */
.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(10px);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.current-balance {
    font-size: 2rem;
}

.currency {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
    margin-left: 4px;
}

.trend-up {
    color: #22c55e;
}

.trend-down {
    color: #ef4444;
}

.trend-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.trend-badge.trend-up {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.trend-badge.trend-down {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Timeline */
.timeline {
    padding: 20px;
}

.timeline-item {
    display: flex;
    gap: 20px;
    position: relative;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 24px;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid var(--bg-card);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    position: relative;
    z-index: 1;
}

.timeline-line {
    flex: 1;
    width: 2px;
    background: #e2e8f0;
    margin-top: 8px;
    min-height: 40px;
}

.timeline-content {
    flex: 1;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.timeline-content:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
    background: white;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.timeline-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.timeline-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Balance Display */
.balance-display {
    background: rgba(99, 102, 241, 0.05);
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #6366f1;
}

.balance-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.balance-value {
    font-size: 2rem;
    font-weight: 700;
    color: #22c55e;
}

.balance-change {
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.balance-change.change-increase {
    color: #22c55e;
}

.balance-change.change-decrease {
    color: #ef4444;
}

/* =====================================================
   Table Helpers (for Report Form)
   ===================================================== */
.financial-table .header-row td {
    background: rgba(245, 158, 11, 0.1);
    font-weight: 600;
    color: #b45309;
    padding: 1rem;
    text-align: left;
}

.financial-table .sub-row td:first-child {
    padding-left: 2rem;
    color: #475569;
}

.financial-table .total-cell {
    background: rgba(241, 245, 249, 0.5);
    font-weight: 700;
}

.financial-table input[type="number"],
.financial-table input[type="text"],
.financial-table select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.financial-table input:focus,
.financial-table select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.financial-table input[readonly] {
    background-color: #f8fafc;
    border-color: transparent;
    cursor: default;
}

.step-indicator-wrapper {
    margin-bottom: 2rem;
    position: relative;
    padding: 0 1rem;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Progress Line back layer */
.step-indicator::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
    border-radius: 2px;
}

.step-indicator-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Step Circle */
.step-number-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    background: white;
    border: 3px solid #e2e8f0;
    color: #94a3b8;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Completed Step */
.step-indicator-item.completed .step-number-circle {
    background: #10b981;
    /* Teal-500 */
    border-color: #10b981;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.step-indicator-item.completed .step-number-circle::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.2rem;
}

/* Active Step */
.step-indicator-item.active .step-number-circle {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    /* Navy */
    border-color: #1e3a8a;
    color: white;
    transform: scale(1.15);
    box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.4);
    animation: pulse-navy 2s infinite;
}

/* Step Title */
.step-title-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s;
    margin-top: 5px;
    line-height: 1.3;
}

.step-indicator-item.active .step-title-text {
    color: #1e3a8a;
    font-weight: 700;
}

.step-indicator-item.completed .step-title-text {
    color: #10b981;
}

@keyframes pulse-navy {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(30, 58, 138, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(30, 58, 138, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .step-number-circle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        border-width: 2px;
    }

    .step-indicator::before {
        top: 18px;
        left: 20px;
        right: 20px;
        height: 2px;
    }

    .step-title-text {
        font-size: 0.7rem;
        display: none;
    }

    /* Hide titles on mobile if too crowded, or make smaller */
    .step-indicator-item.active .step-title-text {
        display: block;
    }

    /* Show only active title */
}

.change-icon {
    font-size: 1.2rem;
}

/* Timeline Details */
.timeline-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.detail-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.file-link {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.file-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.note-content {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Badge Tweaks */
.badge-primary {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

/* Responsive History */
@media (max-width: 768px) {
    .account-info-card {
        padding: 20px;
    }

    .account-header {
        flex-direction: column;
        text-align: center;
    }

    .account-stats {
        grid-template-columns: 1fr;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
}