/* CSS Reset & Original Paysaral Theme Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --primary-teal: #009688;       
    --deep-menu: #004D40;          
    --accent-green: #67C949;       
    --bg-color: #F5F6FA;           
    --dark-sidebar: #004D40; 
    --card-bg: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #EAEAEA;
    --highlight-color: #FFD54F; 
}

/* FIX: Unlocked Scrolling & Panning for Mobile Zoom */
html, body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-width: 1366px; 
    overflow: auto; /* ALLOWS X AND Y SCROLLING/PANNING */
    overscroll-behavior: none; /* Stops the bounce safely without blocking touch */
    -webkit-text-size-adjust: 100%; 
}

/* --- Top Header --- */
.top-header {
    background-color: var(--primary-teal);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 20px; 
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
    min-width: 1366px; 
}

.logo-area {
    width: 250px; 
    min-width: 250px;
    height: 100%; 
    background-color: #FFFFFF; 
    display: flex;
    align-items: center;
    justify-content: center; 
    padding: 0 20px;
}

.main-logo {
    height: 40px; 
    max-width: 100%;
    object-fit: contain;
}

.top-nav {
    flex: 1;
    display: flex;
    gap: 8px; 
    overflow-x: auto;
    scrollbar-width: none;
    padding-left: 30px; 
    align-items: center;
}

.top-nav::-webkit-scrollbar { display: none; }

.top-nav a {
    color: #FFFFFF !important;
    text-decoration: none;
    font-size: 13px; 
    font-weight: 400 !important; 
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 8px; 
}

.top-nav a:hover {
    background-color: rgba(255,255,255,0.15); 
}

.top-nav a.active {
    background-color: #FFFFFF; 
    color: var(--primary-teal) !important; 
    font-weight: 600 !important; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wallet-area { display: flex; gap: 15px; }

.wallet-box {
    background-color: var(--card-bg); 
    color: var(--accent-green);
    padding: 6px 14px;
    border-radius: 6px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wallet-title {
    font-size: 11px;
    font-weight: 500;
    display: flex; align-items: center; gap: 5px;
    color: var(--text-muted); 
}
.wallet-amount { font-size: 15px; font-weight: 700; }

/* --- Main Layout & Sidebar --- */
.main-wrapper {
    display: flex; 
    flex: 1; 
    overflow: hidden; /* Only the wrapper hides overflow, body handles main scroll */
    min-width: 1366px; 
}

.sidebar {
    width: 250px;
    min-width: 250px; 
    background-color: var(--dark-sidebar);
    color: white;
    display: flex; flex-direction: column;
    overflow-y: auto; overscroll-behavior: none;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); }

.profile-card {
    background-color: rgba(255,255,255,0.1);
    color: white;
    margin: 15px; padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--accent-green);
}
.welcome-text { font-size: 14px; font-weight: 500; margin-bottom: 5px; }
.welcome-text .highlight { color: var(--accent-green); font-weight: 700; }
.time-text { font-size: 12px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 5px; }

/* --- Side Menu Setup --- */
.side-menu { list-style: none; padding: 0; margin-top: 10px; }

/* Glowing Teal Separator Lines */
.side-menu li {
    border-bottom: 1px solid rgba(0, 150, 136, 0.4); 
    box-shadow: 0 1px 2px rgba(0, 150, 136, 0.2); 
}
.side-menu li:last-child {
    border-bottom: none; 
    box-shadow: none;
}

.side-menu a {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 14px 20px; 
    color: rgba(255, 255, 255, 0.85); 
    text-decoration: none; 
    font-size: 13px; 
    font-weight: 500;
    border-left: 3px solid transparent; 
    transition: all 0.3s ease;
}

.side-menu .menu-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-menu .menu-left i { 
    font-size: 14px; 
    width: 20px; 
    text-align: center; 
}

.side-menu .chevron {
    font-size: 10px;
    opacity: 0.3; 
    transition: opacity 0.3s ease, color 0.3s ease; 
}

.side-menu a:hover, .side-menu a.active {
    background-color: rgba(255,255,255,0.05); 
    color: white;
    border-left: 3px solid var(--accent-green);
}

.side-menu a.active .menu-left i { 
    color: var(--accent-green); 
}

.side-menu a:hover .chevron, .side-menu a.active .chevron {
    opacity: 1;
    color: var(--accent-green);
}

/* --- Right Content Area --- */
.content-area {
    flex: 1; padding: 20px 24px;
    overflow-y: auto; overscroll-behavior: none; 
    min-width: 1116px; 
}

/* --- Grid of 6 --- */
.grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}
.quick-links-margin { margin-top: 15px; margin-bottom: 25px; }

/* Stat Cards Style */
.top-card {
    border-radius: 8px; padding: 16px;
    display: flex; justify-content: space-between; align-items: flex-start;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05); 
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.top-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.08); }

.top-card-info h4 { font-size: 11px; font-weight: 500; margin-bottom: 8px; line-height: 1.3;}
.top-card-info .values { font-size: 16px; font-weight: 700; color: var(--text-main); display: flex; align-items: baseline; gap: 5px;}
.top-card-info .amt { font-size: 13px; color: var(--primary-teal); }
.card-icon { font-size: 20px; opacity: 0.9; }

/* Filled Color Gradients */
.card-pink { background: linear-gradient(160deg, #FFFFFF 0%, #FFF0F5 60%, #FFC1D8 100%); border-top: 3px solid #E91E63; }
.text-pink { color: #E91E63; }

.card-red { background: linear-gradient(160deg, #FFFFFF 0%, #FFF5F5 60%, #FFD1D1 100%); border-top: 3px solid #F44336; }
.text-red { color: #F44336; }

.card-yellow { background: linear-gradient(160deg, #FFFFFF 0%, #FFFDE7 60%, #FFF59D 100%); border-top: 3px solid #FFC107; }
.text-yellow { color: #FFC107; }

.card-grey { background: linear-gradient(160deg, #FFFFFF 0%, #F5F5F5 60%, #D6D6D6 100%); border-top: 3px solid #9E9E9E; }
.text-grey { color: #9E9E9E; }

.card-green { background: linear-gradient(160deg, #FFFFFF 0%, #F0FBF0 60%, #C3FBC3 100%); border-top: 3px solid #4CAF50; }
.text-green { color: #4CAF50; }

.card-purple { background: linear-gradient(160deg, #FFFFFF 0%, #F8F0FA 60%, #ECCBF0 100%); border-top: 3px solid #9C27B0; }
.text-purple { color: #9C27B0; }

/* Action Cards */
.action-card {
    background-color: var(--card-bg);
    border-radius: 8px; padding: 16px 10px;
    text-align: center; cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
}
.action-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.06); border-color: var(--accent-green);}
.action-card i { font-size: 24px; margin-bottom: 10px; }
.action-card p { font-size: 11px; font-weight: 600; line-height: 1.4; }

.text-blue { color: #2196F3; }
.text-orange { color: #FF9800; }
.text-teal { color: var(--primary-teal) !important; font-weight: 600; }

/* --- Summary Panels Layout --- */
.summary-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}
.panel-box {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}
.panel-header { padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.panel-header h3 { font-size: 14px; font-weight: 600; color: var(--text-main); }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.show-list-link { font-size: 11px; color: var(--primary-teal); text-decoration: none; font-weight: 600; }
.panel-body { padding: 10px 20px; }
.list-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f0f0f0; font-size: 12px; color: var(--text-main); }
.list-item:last-child { border-bottom: none; }
.border-none { border-bottom: none !important; }
.total-row { font-weight: 700; font-size: 13px; border-bottom: none; padding-top: 16px; }
.bg-light { background-color: #FAFAFA; padding: 12px; border-radius: 4px; margin-top: 5px; }