/* Secondary Skills Checks Page Styles */

/* Primary Copy Container */
.primary-copy-container {
    margin-top: 0;
    padding-top: 1.5rem !important;
    background-color: #ffffff !important;
    overflow-y: visible;
    overflow-x: visible;
    font-family: 'Roboto', sans-serif;
}

/* Year Dropdown */
.sc-year-dropdown {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
}

.sc-year-dropdown-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sc-year-dropdown-trigger:hover {
    border-color: #9ca3af;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sc-year-dropdown-trigger svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.sc-year-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 100;
}

.sc-year-dropdown-menu.active {
    display: block;
}

.sc-year-dropdown-item {
    width: 100%;
    display: block;
    padding: 0.75rem 1rem;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sc-year-dropdown-item:last-child {
    border-bottom: none;
}

.sc-year-dropdown-item:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.sc-year-dropdown-item.active {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.sc-year-dropdown a,
.sc-year-dropdown a.sc-year-dropdown-item {
    text-decoration: none;
}

.sc-left-column-wrapper {
    display: flex;
    flex-direction: column;
}

.sc-header-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1.5rem;
    gap: 0;
}

/* Back Button */
/* Back Button - Uses standardized style from styles.css */

/* Page Header - Blue Box Style */
.sc-page-header {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1), 0 3px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    border: none;
    min-height: 80px;
}

.sc-page-header-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.sc-page-header-primary::before {
    background-image: 
        /* Decorative shapes */
        radial-gradient(circle at 15% 25%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(110, 231, 183, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 10%, rgba(187, 247, 208, 0.06) 0%, transparent 35%),
        /* Grid pattern */
        repeating-linear-gradient(0deg, rgba(16, 185, 129, 0.05) 0px, rgba(16, 185, 129, 0.05) 1px, transparent 1px, transparent 20px),
        repeating-linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0px, rgba(16, 185, 129, 0.05) 1px, transparent 1px, transparent 20px);
}

.sc-page-header-secondary {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.sc-page-header-secondary::before {
    background-image: 
        /* Decorative shapes */
        radial-gradient(circle at 15% 25%, rgba(96, 165, 250, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(147, 197, 253, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 10%, rgba(191, 219, 254, 0.06) 0%, transparent 35%),
        /* Grid pattern */
        repeating-linear-gradient(0deg, rgba(96, 165, 250, 0.05) 0px, rgba(96, 165, 250, 0.05) 1px, transparent 1px, transparent 20px),
        repeating-linear-gradient(90deg, rgba(96, 165, 250, 0.05) 0px, rgba(96, 165, 250, 0.05) 1px, transparent 1px, transparent 20px);
}

.sc-page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.25rem;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.sc-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Decorative shapes */
        radial-gradient(circle at 15% 25%, rgba(96, 165, 250, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(147, 197, 253, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 10%, rgba(191, 219, 254, 0.06) 0%, transparent 35%),
        /* Grid pattern */
        repeating-linear-gradient(0deg, rgba(96, 165, 250, 0.05) 0px, rgba(96, 165, 250, 0.05) 1px, transparent 1px, transparent 20px),
        repeating-linear-gradient(90deg, rgba(96, 165, 250, 0.05) 0px, rgba(96, 165, 250, 0.05) 1px, transparent 1px, transparent 20px);
    background-size: 
        auto,
        auto,
        auto,
        20px 20px,
        20px 20px;
    background-position: 
        15% 25%,
        85% 75%,
        50% 10%,
        0 0,
        0 0;
    background-repeat: 
        no-repeat,
        no-repeat,
        no-repeat,
        repeat,
        repeat;
    pointer-events: none;
    border-radius: 1.25rem;
    opacity: 0.8;
    z-index: 0;
    overflow: hidden;
}

.sc-header-image {
    position: absolute;
    right: 2%;
    top: 110%;
    transform: translateY(-50%);
    height: 220%;
    width: auto;
    max-width: 380px;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
    clip-path: inset(0 round 1.25rem);
}

/* Tablet styles for header */
@media (min-width: 768px) and (max-width: 1024px) {
    .sc-header-image {
        max-width: 300px;
        height: 180%;
    }
    
    .sc-header-content {
        padding-right: 320px;
    }
}

@media (max-width: 767px) {
    .sc-header-image {
        display: none;
    }
    
    .sc-header-content {
        padding-right: 0;
    }
}

.sc-title-row {
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.sc-header-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    padding-right: 400px;
}

.sc-header-text {
    flex: 1;
    min-width: 0;
}

/* Top Navigation Bar */
.sc-top-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.sc-top-nav-bar .back-button {
    margin-bottom: 0;
}

.sc-top-nav-bar .sc-how-to-use-link {
    margin-bottom: 0;
    margin-left: auto;
}

.sc-page-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0.5rem 0 0 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    max-width: 800px;
    font-weight: 400;
}

.sc-header-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1.5rem;
    gap: 0;
}

.sc-how-to-use-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    padding: 0.5rem 0.75rem;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    transition: all 0.2s;
    border-radius: 0.375rem;
}

.sc-how-to-use-link:hover {
    color: #1d4ed8;
    background-color: #eff6ff;
}

.sc-page-title {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 0.5rem 0 !important;
    font-family: 'Roboto', sans-serif;
    text-shadow: none;
    line-height: 1.1;
    letter-spacing: -0.03em;
    position: relative;
}

.sc-page-title::after {
    display: none;
}

@media (min-width: 768px) {
    .sc-page-header {
        padding: 1.25rem 1.5rem;
    }
    
    .sc-page-title {
        font-size: 3.5rem !important;
    }
    
    .sc-page-subtitle {
        font-size: 1rem;
    }
}


/* Scheme Toggle */
.sc-scheme-toggle-wrapper {
    width: 100%;
    margin-bottom: 0;
}

.sc-scheme-toggle {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    background: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.25rem;
    border: 1px solid #e5e7eb;
    width: 100%;
}

.sc-scheme-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.sc-scheme-toggle-three .sc-scheme-btn {
    padding: 0.75rem 0.625rem;
    font-size: 0.8125rem;
}

@media (max-width: 480px) {
    .sc-scheme-toggle-three .sc-scheme-btn {
        padding: 0.625rem 0.375rem;
        font-size: 0.75rem;
    }
}

.sc-scheme-btn.active {
    background: white;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sc-scheme-btn.active:hover {
    background: white;
    color: #111827;
}

.sc-scheme-btn:hover:not(.active) {
    color: #374151;
}

.sc-scheme-toggle.disabled .sc-scheme-btn {
    cursor: not-allowed;
    opacity: 0.6;
}

.sc-scheme-toggle.disabled.greyed-out {
    opacity: 0.5;
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.sc-scheme-toggle.disabled.greyed-out .sc-scheme-btn {
    opacity: 0.5;
    cursor: not-allowed;
    color: #9ca3af;
}

.sc-scheme-toggle.disabled.greyed-out .sc-scheme-btn.active {
    background: white;
    color: #9ca3af;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Topic Navigation Item Styles (shared with problem-solving pages) */
.topic-nav-item {
    background: none;
    border: none;
    border-left: 3px solid transparent;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #374151;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s;
    font-family: 'Roboto', sans-serif;
    width: 100%;
    display: block;
    user-select: none;
    text-decoration: none;
}

.topic-nav-item:last-child {
    border-bottom: none;
}

.topic-nav-item:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.topic-nav-item.active {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 500;
    border-left-color: #2563eb;
}

/* Main Layout */
.sc-main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    max-width: 100%;
    overflow-x: visible;
    overflow-y: visible;
}

@media (min-width: 1024px) {
    .sc-main-layout {
        grid-template-columns: 280px 1fr;
        gap: 2rem;
        padding-left: 0;
        align-items: start;
    }
}

.sc-left-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding-top: 1rem;
}

.sc-left-column .sc-page-nav {
    width: 100%;
    flex-shrink: 0;
}

.sc-left-column .sc-question-generator-card {
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 1200px) {
    .sc-main-layout {
        max-width: 100%;
        padding: 0;
    }
    
    .sc-content-area {
        max-width: 100%;
        overflow-x: visible;
    }
}

/* Sidebar Navigation */
.sc-page-nav {
    position: sticky;
    top: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: none;
    align-self: start;
    flex-shrink: 0;
    width: 250px;
}

.sc-page-nav::-webkit-scrollbar {
    width: 6px;
}

.sc-page-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sc-page-nav::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.sc-page-nav::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.sc-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sc-nav-links li {
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
}

.sc-nav-links li:last-child {
    border-bottom: none;
}

.sc-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
    border-left: 3px solid transparent;
    position: relative;
    font-weight: 400;
}

.sc-nav-link:hover {
    background-color: #f3f4f6;
    color: #111827;
    text-decoration: none;
}

.sc-nav-link.active {
    background-color: #eff6ff;
    color: #2563eb;
    border-left-color: #2563eb;
    font-weight: 500;
}

.sc-qg-button-li {
    margin-top: 0.75rem;
}

.sc-qg-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background-color: #f3f4f6;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: none;
}

.sc-qg-button:hover {
    background-color: #e5e7eb;
    color: #111827;
    text-decoration: none;
    border-color: #d1d5db;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sc-qg-button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: currentColor;
}

.sc-question-generator-card {
    background: #ffffff;
    border: 1px solid #bbbbbb;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    margin-top: 1rem;
    align-self: start;
}

.sc-question-generator-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    color: #111827;
    border: 2px solid #d1d5db;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.sc-question-generator-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.sc-question-generator-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Question Generator Banner */
.sc-qg-banner {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    margin: 3rem 0 0;
    text-align: center;
    box-shadow: 0 20px 40px -20px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.sc-qg-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.sc-qg-banner-content {
    position: relative;
    z-index: 1;
}

.sc-qg-banner h3 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
    font-family: 'Roboto', sans-serif;
}

.sc-qg-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
}

.sc-qg-banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #ffffff;
    color: #2563eb;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sc-qg-banner-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: #f9fafb;
}

.sc-qg-banner-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .sc-qg-banner {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem 0;
    }
    
    .sc-qg-banner h3 {
        font-size: 1.5rem;
    }
    
    .sc-qg-banner p {
        font-size: 0.9375rem;
    }
}

/* Content Area */
.sc-content-area {
    padding: 0;
    min-height: 0;
    overflow: visible;
    overflow-x: visible;
}

/* Content Wrapper - Desktop layout (side-by-side) */
.content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 2rem;
}

/* Main Content Area - Desktop */
.main-content-area {
    flex: 1;
    min-width: 0;
}

/* Topic Sidebar */
.topic-sidebar {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    max-width: 250px;
    flex-shrink: 0;
}

.content-wrapper .topic-sidebar {
    width: auto !important;
    max-width: 250px !important;
    min-width: 0 !important;
}

/* Left Column Wrapper - Desktop */
.sc-left-column-wrapper {
    width: 280px;
    flex-shrink: 0;
}

.sc-content-section {
    display: none;
    background: white;
    border-radius: 0.75rem;
    border: none;
    box-shadow: none;
    padding: 0;
    overflow: visible;
    overflow-x: visible;
    margin-top: 1rem;
}

.sc-content-section.active {
    display: block;
}

/* Content Card - Wraps header and half terms list */
.sc-content-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

/* Mental Focus Card Header (from mental arithmetic) */
.mental-focus-card-header {
    margin-bottom: 1.5rem;
}

.mental-assessments-description-row {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 0;
}

.mental-assessments-description-text {
    flex: 4;
}

.mental-assessments-description-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.75rem 0;
    font-family: 'Roboto', sans-serif;
}

.mental-section-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.mental-assessments-image-wrapper {
    flex: 1.5;
    border-radius: 4px;
    position: relative;
    height: 120px;
    background-color: transparent;
    padding: 0;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

.mental-assessments-image {
    width: 100%;
    object-fit: contain;
    object-position: top;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

.sc-focus-card {
    background: transparent;
    border-radius: 0;
    min-height: 0;
    overflow: visible;
    height: auto;
    box-shadow: none;
    border: none;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
}

/* Content Header */
.sc-content-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.sc-context-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Roboto', sans-serif;
}

.sc-context-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.02em;
    font-family: 'Roboto', sans-serif;
}

.sc-scheme-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.025em;
}

.sc-header-action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sc-header-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sc-header-action-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sc-header-action-btn:hover {
    background: #f9fafb;
    border-color: #2563eb;
    color: #2563eb;
}

.sc-header-action-btn#record-sheets-btn {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
    width: auto;
}

.sc-header-action-btn#record-sheets-btn:hover {
    background: #374151;
    border-color: #374151;
    color: #ffffff;
}

/* Half Term Tabs */
.sc-half-term-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sc-half-term-tabs::-webkit-scrollbar {
    display: none;
}

.sc-half-term-tab {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-bottom: -2px;
}

.sc-half-term-tab:hover {
    color: #2563eb;
    background-color: #f3f4f6;
}

.sc-half-term-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background-color: transparent;
}

/* Half Terms Content Container */
.sc-half-terms-content {
    margin-top: 0;
}

/* Half Terms Dropdown List */
.sc-half-terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sc-half-term-item {
    margin-bottom: 0;
}

/* Half Term Header (Dropdown Trigger) - No longer used but kept for compatibility */
.sc-half-term-header {
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
    margin: 0;
    padding: 0.625rem 1rem;
    background-color: #f3f4f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
}

.sc-half-term-header:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.sc-half-term-header.expanded {
    background-color: #e5e7eb;
    color: #111827;
}

.sc-half-term-header svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
    color: #6b7280;
    flex-shrink: 0;
}

.sc-half-term-header.expanded svg {
    transform: rotate(180deg);
    color: #111827;
}

.sc-half-term-header span {
    flex: 1;
    color: inherit;
}

/* Half Term Content */
.sc-half-term-content {
    padding: 2rem 1.5rem;
    display: block;
}

.sc-focus-grade-buttons::-webkit-scrollbar {
    height: 6px;
}

.sc-focus-grade-buttons::-webkit-scrollbar-track {
    background: transparent;
}

.sc-focus-grade-buttons::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.sc-focus-grade-buttons::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Half Terms Dropdown List */
.sc-half-terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sc-half-term-item {
    margin-bottom: 0;
}

/* Half Term Header (Dropdown Trigger) */
.sc-half-term-header {
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
    margin: 0;
    padding: 0.625rem 1rem;
    background-color: #f3f4f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
}

.sc-half-term-header:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.sc-half-term-header.expanded {
    background-color: #e5e7eb;
    color: #111827;
}

.sc-half-term-header svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
    color: #6b7280;
    flex-shrink: 0;
}

.sc-half-term-header.expanded svg {
    transform: rotate(180deg);
    color: #111827;
}

.sc-half-term-header span {
    flex: 1;
    color: inherit;
}

/* Half Term Content (Dropdown Content) */
.sc-half-term-content {
    padding: 2rem 1.5rem;
    display: none;
}

.sc-half-term-content.expanded {
    display: block;
}

.sc-panel-card {
    padding: 0;
    padding-top: 0;
}

/* Questions Grid (3 columns) */
.sc-questions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Tablet styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .sc-questions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .sc-question-section {
        padding: 1.25rem;
    }
    
    .sc-question-section h4 {
        font-size: 1.0625rem;
    }
    
    .sc-question-section p {
        font-size: 0.8125rem;
    }
    
    .sc-button-group {
        gap: 0.5rem;
    }
    
    .sc-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .sc-category {
        padding: 1.25rem;
    }
    
    .sc-topics-grid {
        gap: 1.5rem;
        padding: 0 0.75rem;
    }
    
    .sc-topic-column h5 {
        font-size: 0.8125rem;
    }
    
    .sc-topic-list li a {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .content-wrapper {
        gap: 1.5rem;
    }
    
    .sc-left-column-wrapper {
        width: 240px;
    }
    
    .sc-page-header {
        padding: 1.125rem 1.5rem;
    }
    
    .sc-page-title {
        font-size: 2.75rem !important;
    }
    
    .sc-page-subtitle {
        font-size: 0.9375rem;
    }
    
    .sc-content-header {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .sc-header-action-buttons {
        width: 100%;
    }
    
    .sc-header-action-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .sc-mixed-questions-grid {
        gap: 1.5rem;
    }
    
    .sc-mixed-questions-card {
        padding: 1.5rem;
    }
    
    .sc-endless-questions-standalone {
        padding: 1.25rem;
    }
    
    .sc-endless-questions-standalone h4 {
        font-size: 1.125rem;
    }
    
    .sc-endless-questions-standalone p {
        font-size: 0.875rem;
    }
}

@media (max-width: 1024px) {
    .sc-questions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sc-left-column-wrapper {
        width: 100%;
    }
}

@media (max-width: 1290px) and (min-width: 768px) {
    .sc-questions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sc-questions-grid {
        grid-template-columns: 1fr;
    }
}

/* Question Sections */
.sc-question-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: none;
}

.sc-question-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
    font-family: 'Roboto', sans-serif;
}

.sc-question-section p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

.sc-button-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
}

.sc-endless-questions .sc-button-group,
.sc-endless-questions-standalone .sc-button-group {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.75rem;
}

.sc-endless-questions .sc-button-group .sc-btn,
.sc-endless-questions-standalone .sc-button-group .sc-btn {
    flex: 1;
    min-width: 0;
}

.sc-questions-to-project .sc-button-group {
    flex-wrap: nowrap;
    gap: 0.375rem;
    overflow-x: auto;
}

/* Mixed Topics Card - Single card with 3 sections */
.sc-mixed-questions-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: none;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.sc-mixed-questions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
}

/* Tablet styles for mixed questions */
@media (min-width: 768px) and (max-width: 1024px) {
    .sc-mixed-questions-grid {
        gap: 1.5rem;
    }
    
    .sc-mixed-questions-card {
        padding: 1.5rem;
    }
    
    .sc-mixed-question-section h4 {
        font-size: 1.0625rem;
    }
    
    .sc-mixed-question-section p {
        font-size: 0.8125rem;
    }
}

@media (max-width: 1024px) {
    .sc-mixed-questions-grid {
        gap: 2rem;
    }
    
    .sc-mixed-questions-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .sc-mixed-questions-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.sc-mixed-question-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.sc-mixed-question-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    letter-spacing: -0.01em;
    font-family: 'Roboto', sans-serif;
}

.sc-mixed-question-section p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

.sc-mixed-button-wrapper {
    margin-top: 0.75rem;
}

.sc-mixed-button-wrapper .sc-mixed-btn {
    width: 100%;
}

/* Mixed Topics Button Styling */
.sc-mixed-btn {
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #374151 !important;
    padding: 0.75rem 1rem !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s ease;
}

.sc-mixed-btn:hover {
    background: #e5e7eb !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.sc-mixed-btn svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
    flex-shrink: 0;
}

.sc-mixed-btn span {
    flex: 1;
}

.sc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.sc-questions-to-project .sc-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.sc-btn:hover {
    background: #e5e7eb;
    border-color: #6b7280;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sc-button-grid-20 {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.375rem;
    margin-top: 1rem;
}

.sc-button-grid-20 .sc-btn {
    width: 100%;
    min-width: 0;
    aspect-ratio: 1;
    padding: 0.25rem 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Tablet styles for button grid */
@media (min-width: 768px) and (max-width: 1024px) {
    .sc-button-grid-20 {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.5rem;
    }
    
    .sc-button-grid-20 .sc-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .sc-button-grid-20 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .sc-button-grid-20 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Circular buttons for 10 Questions */
.sc-circular-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    max-width: 280px;
}

.sc-circular-buttons .sc-btn-circle:nth-child(5) {
    grid-column: 1;
}

.sc-circular-buttons .sc-btn-circle:nth-child(6) {
    grid-column: 2;
}

.sc-circular-buttons .sc-btn-circle:nth-child(7) {
    grid-column: 3;
}

.sc-btn-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    transition: all 0.15s ease;
}

.sc-btn-circle:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #111827;
}

/* Categories */
.sc-category {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: none;
}

.sc-category:last-child {
    margin-bottom: 0;
}

.sc-category h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.01em;
    font-family: 'Roboto', sans-serif;
}

/* Category Header with Tooltip */
.sc-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.sc-unlimited-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: #facc15;
    color: #111827;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
    margin-left: auto;
}

.sc-topic-tooltip-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s ease;
}

.sc-topic-tooltip-trigger:hover {
    color: #2563eb;
}

.sc-topic-tooltip-trigger svg {
    width: 16px;
    height: 16px;
}

.sc-topic-tooltip {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    min-width: 400px;
    max-width: 600px;
    transform: translateX(0);
}

@media (max-width: 767px) {
    .sc-category {
        overflow: visible;
        position: relative;
    }
    
    .sc-topic-tooltip-trigger {
        display: none;
    }
    
    .sc-topic-tooltip {
        display: none;
    }
}

.sc-topic-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 1rem;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #e5e7eb;
}

.sc-topic-tooltip-trigger:hover .sc-topic-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sc-topic-tooltip-content {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
    font-size: 0.875rem;
    font-family: 'Roboto', sans-serif;
}

.sc-topic-tooltip-description {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
}

.sc-endless-questions-standalone {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background-color: #ffffff;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: none;
}

.sc-endless-questions-standalone h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
    font-family: 'Roboto', sans-serif;
}

.sc-endless-questions-standalone p {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

.sc-category > p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 1.25rem 0;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

/* Topics Grid */
.sc-topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 1rem;
}

.sc-topic-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sc-topic-column h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Roboto', sans-serif;
}

.sc-topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sc-topic-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s ease;
}

.sc-topic-list li a:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sc-topic-list li a svg {
    width: 12px;
    height: 12px;
    color: #6b7280;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

/* Calculator Section */
.sc-calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Tablet styles for calculator grid */
@media (min-width: 768px) and (max-width: 1024px) {
    .sc-calculator-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sc-calculator-left h4 {
        font-size: 1.125rem;
    }
    
    .sc-calculator-left p {
        font-size: 0.8125rem;
    }
    
    .sc-calculator-subsection h5 {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .sc-calculator-grid {
        grid-template-columns: 1fr;
    }
}

.sc-calculator-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sc-calculator-left h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0 0;
    letter-spacing: -0.01em;
    font-family: 'Roboto', sans-serif;
}

.sc-calculator-left p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 0 0;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

.sc-calculator-right {
    display: flex;
    flex-direction: column;
}

.sc-calculator-subsection {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sc-calculator-subsection h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
    font-family: 'Roboto', sans-serif;
}

/* Mixed Section */
.sc-mixed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Tablet styles for mixed grid */
@media (min-width: 768px) and (max-width: 1024px) {
    .sc-mixed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .sc-mixed-section h4 {
        font-size: 1.0625rem;
    }
    
    .sc-mixed-section > p {
        font-size: 0.8125rem;
    }
}

@media (max-width: 1024px) {
    .sc-mixed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sc-mixed-grid {
        grid-template-columns: 1fr;
    }
}

.sc-mixed-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sc-mixed-section:last-child {
    margin-top: 0;
}

.sc-mixed-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.sc-mixed-section > p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.sc-mixed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s ease;
    width: fit-content;
}

.sc-mixed-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #111827;
}

.sc-mixed-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Topic Modal */
.sc-topic-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.sc-topic-modal.active {
    display: flex;
}

.sc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.sc-modal-content {
    position: relative;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    font-family: 'Roboto', sans-serif;
}

.sc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.sc-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.sc-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #6b7280;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
}

.sc-modal-close:hover {
    color: #111827;
}

.sc-modal-close svg {
    width: 20px;
    height: 20px;
}

.sc-modal-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

/* Tablet styles for modal */
@media (min-width: 768px) and (max-width: 1024px) {
    .sc-modal-content {
        width: 85%;
        max-width: 700px;
    }
    
    .sc-modal-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .sc-modal-option-content h4 {
        font-size: 0.9375rem;
    }
    
    .sc-modal-option-content p {
        font-size: 0.8125rem;
    }
}

@media (max-width: 768px) {
    .sc-modal-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Record Sheets Modal */
.sc-record-sheet-modal {
    max-width: 500px;
}

.sc-modal-body {
    padding: 1.5rem;
}

.sc-record-sheet-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sc-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sc-form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    font-family: 'Roboto', sans-serif;
}

.sc-form-select {
    padding: 0.625rem 0.875rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #111827;
    font-size: 0.875rem;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.sc-form-select:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.sc-form-select:focus {
    outline: none;
    border-color: #2563eb;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.sc-record-sheet-submit-btn {
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 0.375rem;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-top: 0.5rem;
}

.sc-record-sheet-submit-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.sc-record-sheet-submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* Play a saved game modal (Bingo) */
.sc-play-saved-modal-content {
    max-width: 440px;
}

.sc-play-saved-description {
    font-size: 0.9375rem;
    color: #4b5563;
    margin: 0 0 1.25rem 0;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
}

.sc-play-saved-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.sc-play-saved-field {
    display: flex;
    flex-direction: column;
}

.sc-play-saved-input {
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    font-family: 'Roboto', sans-serif;
    color: #111827;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sc-play-saved-input::placeholder {
    color: #9ca3af;
}

.sc-play-saved-input:hover {
    border-color: #9ca3af;
}

.sc-play-saved-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.sc-play-saved-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.sc-play-saved-cancel {
    padding: 0.625rem 1.25rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.sc-play-saved-cancel:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.sc-play-saved-submit {
    padding: 0.625rem 1.25rem;
    background: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 0.375rem;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.sc-play-saved-submit:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.sc-play-saved-error {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    color: #b91c1c;
    font-size: 0.875rem;
    font-family: 'Roboto', sans-serif;
}

@media (max-width: 480px) {
    .sc-modal-options {
        grid-template-columns: 1fr;
    }
}

.sc-modal-option {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.sc-modal-option:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.sc-modal-option-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    min-height: 120px;
}

.sc-modal-option-image img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

.sc-modal-option[data-resource-type="exit-tickets"] .sc-modal-option-image,
.sc-modal-option[data-resource-type="worksheet"] .sc-modal-option-image,
.sc-modal-option[data-resource-type="bingo-game"] .sc-modal-option-image {
    min-height: 160px;
}

.sc-modal-option[data-resource-type="exit-tickets"] .sc-modal-option-image img,
.sc-modal-option[data-resource-type="worksheet"] .sc-modal-option-image img,
.sc-modal-option[data-resource-type="bingo-game"] .sc-modal-option-image img {
    max-height: 140px;
}

.sc-modal-option-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem 0;
    font-family: 'Roboto', sans-serif;
}

.sc-modal-option-content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* How to Use Modal Content */
.sc-how-to-use-content {
    padding: 1.5rem;
}

.sc-how-to-use-content p {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-family: 'Roboto', sans-serif;
}

.sc-how-to-use-content p:last-child {
    margin-bottom: 0;
}

/* Bingo Games Modal */
.sc-bingo-modal .sc-modal-body {
    padding: 1.5rem;
}

.sc-bingo-options {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.sc-bingo-section {
    flex: 1;
    min-width: 200px;
}

.sc-bingo-section h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
    font-family: 'Roboto', sans-serif;
}

.sc-bingo-section p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
    font-family: 'Roboto', sans-serif;
}

.sc-bingo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.sc-bingo-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #111827;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sc-bingo-btn svg {
    flex-shrink: 0;
    color: #6b7280;
}

.sc-bingo-half-terms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.sc-bingo-half-term-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sc-bingo-half-term-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #111827;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Tablet styles for bingo options */
@media (min-width: 768px) and (max-width: 1024px) {
    .sc-bingo-options {
        gap: 1.5rem;
    }
    
    .sc-bingo-section h4 {
        font-size: 1.0625rem;
    }
    
    .sc-bingo-section p {
        font-size: 0.8125rem;
    }
    
    .sc-bingo-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .sc-bingo-half-terms {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.625rem;
    }
    
    .sc-bingo-half-term-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .sc-bingo-options {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .sc-bingo-half-terms {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Menu Button */
.sc-mobile-menu-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 0.5rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    width: 100%;
    justify-content: center;
}

.sc-mobile-menu-btn:hover {
    background: #f9fafb;
    border-color: #2563eb;
    color: #2563eb;
}

.sc-mobile-menu-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Tablet and Desktop: Show sidebar normally, hide mobile button */
@media (min-width: 768px) {
    .sc-mobile-menu-btn {
        display: none !important;
    }
    
    .sc-left-column-wrapper {
        display: flex !important;
        position: static !important;
        background: transparent !important;
        overflow: visible !important;
    }
    
    .sc-mobile-sidebar-panel {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        box-shadow: none !important;
        padding: 0 !important;
        background: transparent !important;
    }
    
    .sc-mobile-sidebar-close {
        display: none !important;
    }
}

/* Tablet-specific sidebar adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .sc-left-column-wrapper {
        width: 240px;
    }
    
    .sc-year-dropdown {
        max-width: 100%;
    }
    
    .sc-scheme-toggle {
        width: 100%;
    }
    
    .topic-sidebar {
        width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .sc-description-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .sc-content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .sc-header-action-buttons {
        width: 100%;
    }
    
    .sc-header-action-btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    
    /* Mobile Menu Button */
    .sc-mobile-menu-btn {
        display: flex;
    }
    
    /* Content Wrapper - Stack on mobile */
    .content-wrapper {
        flex-direction: column;
        gap: 0;
        padding-top: 0;
    }
    
    /* Hide sidebar by default on mobile */
    .sc-left-column-wrapper {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        overflow-y: auto;
        padding: 0;
    }
    
    .sc-left-column-wrapper.active {
        display: block;
    }
    
    /* Mobile sidebar panel - white slide-in panel */
    .sc-mobile-sidebar-panel {
        background: #ffffff;
        width: 85%;
        max-width: 320px;
        height: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        transition: left 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
        padding: 1.5rem;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .sc-left-column-wrapper.active .sc-mobile-sidebar-panel {
        left: 0;
    }
    
    /* Close button for mobile sidebar */
    .sc-mobile-sidebar-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: #f3f4f6;
        border: none;
        border-radius: 0.5rem;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #6b7280;
        transition: all 0.2s ease;
        z-index: 1002;
    }
    
    .sc-mobile-sidebar-close:hover {
        background: #e5e7eb;
        color: #111827;
    }
    
    /* Mobile sidebar content wrapper */
    .sc-mobile-sidebar-panel .sc-year-dropdown,
    .sc-mobile-sidebar-panel .sc-header-actions,
    .sc-mobile-sidebar-panel .topic-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    /* Main content takes full width on mobile */
    .main-content-area {
        width: 100%;
    }
    
    /* Stack cards on mobile */
    .sc-questions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sc-mixed-questions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Adjust header on mobile - same style as mathsloops-page-header */
    .sc-page-header {
        padding: 0.75rem 1rem;
        min-height: 70px;
        flex-direction: column;
        margin-bottom: 1.5rem;
    }
    
    .sc-title-row {
        flex-direction: column;
        width: 100%;
    }
    
    .sc-header-content {
        width: 100%;
        padding-right: 0;
    }
    
    .sc-page-title {
        font-size: 2.75rem !important;
    }
    
    .sc-page-level {
        font-size: 0.8125rem;
    }
    
    .sc-page-subtitle {
        font-size: 0.875rem;
    }
    
    .sc-question-section {
        padding: 1rem;
    }
    
    .sc-category {
        padding: 1rem;
    }
    
    /* Calculator grid stacks on mobile */
    .sc-calculator-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Topics grid stacks on mobile */
    .sc-topics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Modal adjustments for mobile */
    .sc-modal-content {
        width: 95%;
        max-height: 85vh;
        padding: 1rem;
    }
    
    .sc-modal-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Year dropdown full width on mobile */
    .sc-year-dropdown {
        width: 100%;
    }
    
    /* Scheme toggle full width on mobile */
    .sc-scheme-toggle {
        width: 100%;
    }
}

/* Small mobile: sc-page-header matches mathsloops-page-header */
@media (max-width: 480px) {
    .sc-page-header {
        padding: 0.625rem 0.875rem;
        margin-bottom: 1.25rem;
        min-height: 70px;
    }
    .sc-page-title {
        font-size: 2.25rem !important;
    }
    .sc-page-level {
        font-size: 0.75rem;
        margin-bottom: 0.125rem;
    }
}

/* Primary Skills Checks QGen Banner */
.primary-page .primary-qg-banner {
    margin-top: 3rem;
    margin-bottom: 0;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Year tab tooltips - show full name on hover for abbreviated tabs */
.secondary-page .year-tab[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background-color: #1f2937;
    color: white;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 0.5rem;
    pointer-events: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.secondary-page .year-tab[title] {
    position: relative;
}

/* QGen banner margin and border for secondary skills checks */
.secondary-page .primary-qg-banner {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Original Mixed Questions Section */
.sc-mixed-questions-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: none;
}

.sc-mixed-questions-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    font-family: 'Roboto', sans-serif;
}

.sc-mixed-questions-section .sc-mixed-questions-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.sc-mixed-questions-section .sc-mixed-questions-grid .sc-mixed-question-btn {
    aspect-ratio: 1;
    padding: 0.25rem 0.375rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sc-mixed-questions-section .sc-mixed-questions-grid .sc-mixed-question-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Tablet styles for mixed questions section */
@media (min-width: 768px) and (max-width: 1024px) {
    .sc-mixed-questions-section .sc-mixed-questions-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }
    
    .sc-mixed-questions-section .sc-mixed-questions-grid .sc-mixed-question-btn {
        font-size: 0.8125rem;
        padding: 0.375rem 0.5rem;
    }
}

@media (max-width: 1200px) {
    .sc-mixed-questions-section .sc-mixed-questions-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .sc-mixed-questions-section .sc-mixed-questions-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.375rem;
    }
    
    .sc-mixed-questions-section .sc-mixed-questions-grid .sc-mixed-question-btn {
        font-size: 0.8125rem;
    }
}
