
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ================= LOGIN ================= */
.login-body {
    background: #1e293b;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-wrapper {
    width: 900px;
    max-width: 95%;
    height: 500px;
    background: white;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 8px solid #0f172a;
    position: relative;
}

.login-left {
    background: #1e4a8a;
    width: 42%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    line-height: 1.2;
    border-radius: 0 50% 50% 0 / 0 50% 50% 0;
    margin-left: -20px;
    padding-left: 40px;
}

.login-right {
    width: 58%;
    padding: 30px 40px;
    position: relative;
}

.help-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #1e4a8a;
    color: white;
    border: none;
    padding: 6px 18px;
    border-radius: 6px;
    cursor: pointer;
}

.login-title {
    text-align: center;
    font-size: 36px;
    margin: 10px 0 20px;
    color: #1e293b;
    letter-spacing: 1px;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-row label {
    width: 120px;
    font-weight: bold;
    color: #0f172a;
}

.form-row input {
    flex: 1;
    padding: 8px;
    border: 1px solid #333;
}

.forgot-link {
    text-align: right;
    margin: 5px 0 15px;
    font-size: 14px;
}

.forgot-link a {
    color: #0f172a;
    font-weight: bold;
    text-decoration: none;
}

.btn {
    width: 25%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    margin-bottom: 12px;
}

.btn-login,
.btn-exit {
    background: #0d9488;
}

.alert {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: center;
}

/* ================= DASHBOARD ================= */
.dashboard-body {
    background: #f1f5f9;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    background: #1e4a8a;
    color: white;
    flex-shrink: 0;
}

.sidebar-header {
    background: #1e4a8a;
    padding: 15px;
    font-size: 22px;
    font-weight: bold;
    color: #facc15;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu > li {
    position: relative;
}

.sidebar-menu > li > a {
    display: block;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-menu > li > a:hover,
.sidebar-menu > li > a.active {
    background: #163a6d;
}

/* ================= PARENT MENU / ARROW ================= */
.sidebar-menu .has-submenu > .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.sidebar-menu .submenu-toggle .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    margin-left: 8px;
    font-size: 20px;
    line-height: 1;
}

/* ================= SUBMENU ================= */
.sidebar-menu .submenu {
    display: none;
    list-style: none;

    /* Parent menu se right side par indentation */
    margin: 5px 8px 9px 22px !important;
    padding: 5px 0 5px 10px !important;

    /* Submenu ko visually separate karta hai */
    border-left: 2px solid rgba(255,255,255,0.65);
    border-radius: 0 6px 6px 0;
    background: rgba(0,0,0,0.08);
}

.sidebar-menu .submenu li {
    margin: 2px 0;
    padding: 0;
}

/* Submenu links */
.sidebar-menu .submenu li a {
    display: block;
    width: 100%;
    padding: 10px 8px !important;
    margin: 0 !important;
    color: white;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    border: none;
    border-radius: 5px;
}

.sidebar-menu .submenu li a:hover {
    background: rgba(255,255,255,0.14);
}

/* Active submenu page */
.sidebar-menu .submenu li a.active {
    background: #0d9488;
    color: white;
}

/* ================= MAIN CONTENT ================= */
.main-content {
    flex: 1;
    min-width: 0;
    padding: 0;
    background: #f1f5f9;
}

.top-bar {
    background: #0d9488;
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar h1 {
    font-size: 24px;
}

.date-time {
    display: flex;
    gap: 15px;
}

.date-box,
.time-box {
    background: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: bold;
}

/* ================= STATS CARDS ================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    padding: 15px;
}

.stat-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-card .icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.icon.blue { background: #1d4ed8; }
.icon.orange { background: #f97316; }
.icon.green { background: #16a34a; }
.icon.navy { background: #1e4a8a; }

.stat-card h4 {
    font-size: 13px;
    color: #64748b;
}

.stat-card h2 {
    font-size: 18px;
}

/* ================= CHARTS ================= */
.charts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 15px;
    padding: 0 15px;
}

.chart-box {
    min-width: 0;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.payment-flex {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
}

.dot.green { background: #34c759; }
.dot.blue { background: #2962ff; }

/* ================= TABLES ================= */
.table-section {
    background: white;
    margin: 15px;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-red {
    background: #dc2626;
    color: white;
    border: none;
    padding: 6px 18px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-teal {
    background: #0d9488;
    color: white;
    border: none;
    padding: 6px 18px;
    border-radius: 6px;
    cursor: pointer;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #1e4a8a;
    color: white;
    padding: 8px;
    text-align: left;
    font-size: 13px;
}

.data-table td {
    padding: 8px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
}

/* ================= SHORTCUT PANEL ================= */
.shortcut-panel {
    width: 160px;
    flex-shrink: 0;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    padding: 10px;
    font-size: 11px;
}

.shortcut-title {
    font-weight: bold;
    border: 1px solid #333;
    padding: 5px;
    text-align: center;
    margin-bottom: 5px;
}

.shortcut-panel div {
    border: 1px solid #fca5a5;
    margin-bottom: 4px;
    padding: 4px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .shortcut-panel {
        display: none;
    }
}

@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column;
        height: auto;
    }

    .login-left,
    .login-right {
        width: 100%;
    }

    .login-left {
        min-height: 150px;
        margin-left: 0;
        padding: 20px;
        border-radius: 0;
    }
}

@media (max-width: 600px) {
    .sidebar {
        width: 190px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .date-time {
        flex-wrap: wrap;
        gap: 8px;
    }

    .payment-flex {
        flex-wrap: wrap;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .form-row label {
        width: 100%;
    }

    .login-right {
        padding: 25px 20px;
    }

    .login-title {
        font-size: 28px;
    }
}
