:root {
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-input: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --primary: #0F766E;
    --primary-hover: #115E59;
    --primary-light: #CCFBF1;
    --success: #059669;
    --danger: #E11D48;
    --warning: #D97706;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 20px;
    --radius-sm: 12px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav Polish */
.dashboard-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 2000; /* Increased */
}

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

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    font-weight: 800;
}
.header-brand i { 
    color: var(--primary);
    background: var(--primary-light);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
    padding: 0.5rem 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.mobile-menu-toggle {
    display: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-main);
    padding: 0.5rem;
    margin-right: -0.5rem;
}

/* Layout Grid & Card Polish */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem; /* Increased spacing */
    margin-bottom: 2.5rem;
}

.card {
    background: var(--bg-card);
    padding: 2rem; /* Increased spacing */
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    min-width: 0;
    max-width: 100%;
}
.card h3 { font-size: 1.2rem; margin-bottom: 1.5rem; }

/* Desktop Specific Column Layouts */
@media (min-width: 769px) {
    .grid-column-2-1 { grid-template-columns: 2fr 1fr; }
    .grid-column-1-2 { grid-template-columns: 1fr 2.5fr; }
    .grid-column-3-equal { grid-template-columns: repeat(3, 1fr); }
}

/* Quick Action Cards Polish */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem; /* Section spacing */
}

.action-card {
    background: #FFF;
    border: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--text-main);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.action-card i {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    background: var(--bg-main);
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
}

.action-card span { font-weight: 700; font-size: 1rem; }

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Table Responsive Polish */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.table { width: 100%; border-collapse: collapse; }
.table-responsive .table { min-width: 600px; }
.table th {
    background: #F8FAFC;
    padding: 1.25rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}
.table td { padding: 1.25rem 1rem; border-bottom: 1px solid #F1F5F9; font-size: 1rem; }

/* Mobile Enhancements */
#menu-toggle { display: none; }

@media (max-width: 768px) {
    .container { padding: 0 12px; }
    .desktop-only { display: none !important; }
    .mobile-menu-toggle { display: block; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFF;
        flex-direction: column;
        padding: 1rem;
        border-bottom: 2px solid var(--primary);
        box-shadow: var(--shadow-lg);
        gap: 0;
        z-index: 1000;
    }
    
    #menu-toggle:checked ~ .dashboard-header .nav-links { display: flex; }
    
    .nav-links a {
        padding: 0.8rem 0;
        border-bottom: 1px solid #F1F5F9;
        width: 100%;
        font-size: 1rem;
    }
    .grid { gap: 1rem !important; grid-template-columns: 1fr !important; }
    .card { padding: 1.25rem; }
    .quick-actions { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .contact-divider { 
        border-left: none !important; 
        padding-left: 0 !important; 
        padding-top: 1.25rem; 
        border-top: 1px solid var(--border-color); 
    }
}

@media (max-width: 480px) {
    .quick-actions { grid-template-columns: 1fr; }
    .header-brand span { font-size: 1.1rem; }
    .badge { padding: 0.25rem 0.5rem; font-size: 0.7rem; }
}

/* Forms Polish */
.form-group { margin-bottom: 1.5rem; } /* Spacing between groups */
.form-label { margin-bottom: 0.6rem; font-weight: 600; font-size: 0.9rem; }
.form-control {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    font-size: 1rem;
}
.btn { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.4rem; 
    border-radius: 14px; 
    font-weight: 700; 
    font-size: 0.95rem; 
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-decoration: none;
    width: auto;
}
.btn-primary { background: var(--primary); color: #FFF; box-shadow: 0 4px 6px -1px rgba(15, 118, 110, 0.2); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--primary); background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-success { background: var(--success); color: #FFF; }
.btn-danger { background: var(--danger); color: #FFF; }


/* Badges & Indicators */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}
.badge-success { background: #DCFCE7; color: var(--success); }
.badge-danger { background: #FEE2E2; color: var(--danger); }
.badge-warning { background: #FEF3C7; color: var(--warning); }
.badge-primary { background: var(--primary-light); color: var(--primary); }

.amount-pos { color: var(--success); font-weight: 700; }
.amount-neg { color: var(--danger); font-weight: 700; }

/* Utilities */
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }

/* Dashboard & Cards Spacing */
.value-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.value-display { font-weight: 800; font-size: 1.5rem; color: var(--text-main); }

/* Auth Page (Login) Layout */
.auth-page { 
    background: #F1F5F9; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 100vh; 
    padding: 20px;
}
.auth-wrapper {
    width: 100%;
    max-width: 440px;
}
.auth-card { 
    background: #FFF;
    padding: 3.5rem 2.5rem; 
    border-radius: 32px; 
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid var(--border-color);
}
.auth-card .logo-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    background: var(--primary-light);
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

/* PIN Input (Customer Side) */
.pin-input-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.pin-digit {
    width: 3.5rem;
    height: 4.5rem;
    padding: 0;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-main);
    transition: all 0.2s;
}
.pin-digit:focus {
    border-color: var(--primary);
    background: var(--primary-light);
    outline: none;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .card { margin-bottom: 1.5rem; } /* Prevent touching on mobile stacking */
}

