/* =========================================
   1. DASHBOARD CARD FIXES (Responsive)
   ========================================= */

/* Default Card Styling (Badi Screens ke liye) */
.widget-user-header {
    height: 120px;
    padding: 1rem;
}
.widget-user .widget-user-image {
    top: 65px;
}
.widget-user .widget-user-image > img {
    width: 90px;
    height: 90px;
    border: 3px solid #fff;
}
.card-footer {
    padding-top: 50px;
}

/* --- Short Screens Fix (e.g. 1366x768 or 1280x720) --- */
/* Agar screen ki height 800px se kam hai, toh cards ko compact karein */
@media (max-height: 800px) {
    .widget-user-header {
        height: 90px !important;
    }
    .widget-user .widget-user-image {
        top: 50px !important;
    }
    .widget-user .widget-user-image > img {
        width: 70px !important;
        height: 70px !important;
    }
    .card-footer {
        padding-top: 35px !important;
        padding-bottom: 10px !important;
    }
    .widget-user-username {
        font-size: 1.25rem !important;
    }
    .widget-user-desc {
        font-size: 0.9rem !important;
    }
}


/* =========================================
   2. GENERAL LAYOUT FIXES (Typing Test etc.)
   ========================================= */

/* Mobile First Grid: Default 1 column */
.responsive-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1400px;
    margin: auto;
}

/* Desktop: Side by Side (Left Content + Right Sidebar) */
@media (min-width: 992px) {
    .responsive-grid-wrapper {
        grid-template-columns: 1fr 300px;
    }
}

/* Responsive Height Box (Jaise typing area) */
.responsive-height-box {
    height: 300px; /* Default height */
}

@media (max-height: 800px) {
    .responsive-height-box {
        height: 200px; /* Choti screen ke liye chota box */
        font-size: 18px;
    }
}

/* ==========================================================================
   SIDEBAR — CURRENT PAGE
   AdminLTE paints the active entry with rgba(255,255,255,.1), the same value
   it uses for hover, so the current page is impossible to tell apart from
   whatever the pointer happens to be over. These rules give the active entry
   an accent bar and a brighter fill of its own.
   ========================================================================== */
.app-sidebar .sidebar-wrapper .sidebar-menu > .nav-item > .nav-link.active:not(:hover) {
    position: relative;
    background-color: rgba(255, 255, 255, .16);
    font-weight: 600;
}

.app-sidebar .sidebar-wrapper .sidebar-menu > .nav-item > .nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background-color: #4dabf7;
}

.app-sidebar .sidebar-wrapper .sidebar-menu > .nav-item > .nav-link.active .nav-icon {
    color: #4dabf7;
}

/* The treeview parent (Account) is open, not selected — keep it quiet so it
   does not compete with the real current page above it. */
.app-sidebar .sidebar-wrapper .sidebar-menu > .nav-item.menu-open > .nav-link:not(:hover) {
    background-color: rgba(255, 255, 255, .06);
}
