/* pro-theme.css */
/* Sidebar Desktop Navigation */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-layout {
    display: flex;
    flex: 1;
}

/* Persistent Sidebar for Desktop */
.desktop-sidebar {
    display: none;
    width: 250px;
    background: #fff;
    border-right: 1px solid #e0e6f5;
    box-shadow: 2px 0 10px rgba(0,0,0,0.02);
    flex-direction: column;
    padding: 20px 0;
    position: sticky;
    top: 65px; /* height of header */
    height: calc(100vh - 65px);
    overflow-y: auto;
}

@media (min-width: 769px) {
    .desktop-sidebar {
        display: flex;
    }
    .main-content-area {
        flex: 1;
        max-width: calc(100% - 250px);
    }
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-left: 4px solid transparent;
    transition: 0.3s;
}

.sidebar-nav-link:hover, .sidebar-nav-link.active {
    background: #f4f7f6;
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
}

/* Make sidebar buttons look like links */
button.sidebar-nav-link {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-left: 4px solid transparent;
    cursor: pointer;
    font-family: inherit;
    justify-content: flex-start;
}

button.sidebar-nav-link:hover, button.sidebar-nav-link.active {
    background: #f4f7f6;
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
}

/* Sidebar dropdown sub-links */
.sidebar-dropdown-content a.sidebar-nav-link {
    padding: 10px 20px 10px 44px;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid transparent;
}

.sidebar-nav-link i {
    font-size: 20px;
    color: #888;
}

.sidebar-nav-link:hover i, .sidebar-nav-link.active i {
    color: var(--secondary-color);
}

/* Hero Section and Cards */
.hero-banner {
    background: linear-gradient(135deg, #e6f3ff 0%, #fff 50%, #ffe6f9 100%);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 18px;
    color: #555;
    margin-bottom: 25px;
}

.hero-graphic {
    max-width: 40%;
}

.hero-graphic img, .hero-graphic svg {
    width: 100%;
    height: auto;
}

/* Override existing layout for Square Subject Cards */
.subject-selection {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 20px;
}

/* CRITICAL: .hidden must override .subject-selection's display:grid !important */
.subject-selection.hidden {
    display: none !important;
}

.subject-selection .subject-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: auto;
    aspect-ratio: 1 / 1;
}

.subject-selection .subject-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1) !important;
    border-color: #dbeafe !important;
}

.subject-selection .subject-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--secondary-color);
}

.subject-selection .subject-card.active {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 8px 25px rgba(37, 117, 252, 0.2) !important;
    background: #fff !important;
    color: var(--text-dark) !important;
}

.subject-selection .subject-card i {
    font-size: 40px !important;
    color: var(--secondary-color) !important;
    margin-bottom: 10px !important;
}

.subject-selection .subject-card span {
    font-size: 15px !important;
    color: var(--text-dark) !important;
    margin: 0 !important;
    font-weight: 700 !important;
    line-height: 1.3;
}

/* IBPS Mock Test Full-Screen Modal Overlay */
#quizContainer.ibps-mode {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100000;
    background: #f4f6f9;
    padding: 0 !important;
    margin: 0 !important;
}

#quizContainer.ibps-mode .exam-layout {
    width: 100vw;
    height: 100vh;
}
