/*
Theme Name: Gujarat Exam Portal Theme
Theme URI: https://gujaratexam.in
Author: GujaratExam.in Team
Author URI: https://gujaratexam.in
Description: Modern, responsive Gujarat competitive examination theme designed for TCS iON mock tests, agencies directory, and student test analytics.
Version: 5.0.0
License: GNU General Public License v2 or later
Text Domain: gujarat-exam-theme
*/

* { box-sizing: border-box; }
body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: #f1f5f9;
    color: #0f172a;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.ge-theme-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px;
}

/**
 * TCS iON CBT Complete Stylesheet
 */
.ge-portal-container {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    animation: geFadeIn 0.35s ease-out;
}

/* Keyframe Animations */
@keyframes geFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes geSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes geScaleIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes gePulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}

@keyframes geLivePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

/* Animation Utility Classes */
.ge-fade-in {
    animation: geFadeIn 0.35s ease-out both;
}

.ge-slide-up {
    animation: geSlideUp 0.35s ease-out both;
}

.ge-scale-in {
    animation: geScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ge-badge-live {
    display: inline-flex;
    align-items: center;
    background: #dc2626;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
    margin-left: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: geLivePulse 2s infinite ease-in-out;
}

/* Topbar */
.ge-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    flex-wrap: wrap;
    gap: 12px;
    transition: all 0.25s ease;
}
body.ge-has-theme-header .ge-topbar,
header ~ * .ge-topbar,
header ~ main .ge-topbar,
.ge-site-header ~ main .ge-topbar,
.site-main > .ge-topbar,
.site-main .ge-topbar,
.entry-content .ge-topbar,
#ge-app-root > .ge-topbar,
.ge-portal-container > .ge-topbar,
#masthead ~ * .ge-topbar,
.site-header ~ * .ge-topbar {
    display: none !important;
}

/* Hide plain placeholder text if present above app */
.site-main > p:first-child,
.entry-content > p:first-child {
    display: none !important;
}

.ge-brand {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ge-nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.ge-nav-link {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ge-nav-link:hover {
    color: #2563eb;
    background: #f1f5f9;
    transform: translateY(-1px);
}
.ge-nav-link.active {
    color: #2563eb;
    background: #eff6ff;
    font-weight: 800;
}
.ge-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
}
.ge-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ge-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.ge-user-name { font-size: 12px; font-weight: 700; color: #0f172a; }
.ge-user-roll { font-size: 10px; color: #64748b; }

/* AI Studio Hero Banner */
.ge-hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #0f172a 100%);
    color: #ffffff;
    padding: 32px 36px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3), 0 8px 10px -6px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.35);
    margin-bottom: 28px;
}
.ge-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(147, 197, 253, 0.3);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}
.ge-hero-title {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.25;
}
.ge-hero-desc {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    max-width: 820px;
    margin: 0 0 20px 0;
}
.ge-hero-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}
.ge-hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(51, 65, 85, 0.8);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}

/* Fallback Grid Header */
.ge-grid-header {
    text-align: left;
    margin-bottom: 24px;
}
.ge-grid-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}
.ge-grid-header p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* Search & Filters (AI Studio Parity) */
.ge-filters-section,
.ge-filter-container {
    margin-bottom: 28px;
}
.ge-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}
.ge-filters-count {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}
.ge-search-wrapper {
    position: relative;
    margin-bottom: 14px;
}
.ge-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #94a3b8;
    pointer-events: none;
}
.ge-search-input,
.ge-search-box {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 14px;
    color: #0f172a;
    box-sizing: border-box;
    outline: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}
.ge-search-input:focus,
.ge-search-box:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.ge-category-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    flex-wrap: wrap;
}
.ge-cat-pill {
    padding: 7px 16px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    transition: all 0.15s ease;
}
.ge-cat-pill:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}
.ge-cat-pill.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 6px rgba(37,99,235,0.25);
}

/* Agency Grid */
.ge-agency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.ge-agency-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    animation: geFadeIn 0.35s ease-out;
}
.ge-agency-card:hover {
    transform: translateY(-3px);
    border-color: #93c5fd;
    box-shadow: 0 10px 20px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
}

/* Card Header */
.ge-card-header,
.ge-agency-head-box {
    padding: 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #f1f5f9;
}
.ge-card-top-row,
.ge-agency-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.ge-badges-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ge-agency-code-badge,
.ge-agency-badge {
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
    background: #2563eb;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}
.ge-tcs-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #047857;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #a7f3d0;
}
.ge-category-badge,
.ge-agency-category {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}
.ge-agency-title,
.ge-agency-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 8px 0;
}
.ge-agency-title a,
.ge-agency-name a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s;
}
.ge-agency-title a:hover,
.ge-agency-name a:hover {
    color: #2563eb;
}
.ge-agency-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ge-card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #94a3b8;
    padding-top: 8px;
    border-top: 1px dashed #f1f5f9;
}
.ge-card-meta-row a {
    color: #64748b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ge-card-meta-row a:hover {
    color: #2563eb;
}

/* Card Body & Examinations list */
.ge-card-body,
.ge-exam-list {
    padding: 20px;
    background: #ffffff;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.ge-exams-header,
.ge-exam-list-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ge-exams-sub {
    font-size: 10px;
    color: #94a3b8;
    text-transform: none;
}
.ge-exam-items,
.ge-exam-list ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.ge-exam-item,
.ge-exam-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    transition: all 0.15s ease;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}
.ge-exam-item:hover,
.ge-exam-list li:hover {
    background: #f0f7ff;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}
.ge-exam-info {
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}
.ge-exam-title,
.ge-exam-link span {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    display: block;
}
.ge-exam-item:hover .ge-exam-title,
.ge-exam-list li:hover .ge-exam-link span {
    color: #1d4ed8;
}
.ge-exam-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}
.ge-exam-slug {
    color: #2563eb;
    font-weight: 600;
}
.ge-exam-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.ge-btn-exam-now,
.ge-quick-exam-btn {
    background: #16a34a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(22, 163, 74, 0.2);
    transition: all 0.15s ease;
}
.ge-btn-exam-now:hover,
.ge-quick-exam-btn:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(22, 163, 74, 0.3);
}
.ge-exam-arrow {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.ge-exam-item:hover .ge-exam-arrow,
.ge-exam-list li:hover .ge-exam-arrow {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    transform: translateX(2px);
}

.ge-card-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}
.ge-tcs-ready {
    color: #047857;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ge-agency-id {
    color: #94a3b8;
    font-family: monospace;
    font-size: 10px;
}
.ge-quick-exam-btn:active {
    transform: translateY(1px) scale(0.98);
}
.ge-agency-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.ge-agency-badge {
    background: #2563eb;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
}
.ge-agency-category {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
}
.ge-agency-name {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.35;
}
.ge-agency-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.5;
    flex-grow: 1;
}
.ge-exam-list-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 8px;
}
.ge-exam-list ul { list-style: none; padding: 0; margin: 0; }
.ge-exam-list li { margin-bottom: 6px; }
.ge-exam-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f8fafc;
    transition: background 0.15s;
}
.ge-exam-link:hover {
    background: #eff6ff;
    color: #2563eb;
}
.ge-exam-dot {
    width: 6px;
    height: 6px;
    background: #2563eb;
    border-radius: 50%;
}
.ge-arrow { margin-left: auto; color: #94a3b8; }

/* All Exams Catalog Grid Styles */
.ge-all-exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.ge-exam-catalog-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: all 0.2s ease;
}
.ge-exam-catalog-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 20px -5px rgba(37,99,235,0.12);
    transform: translateY(-2px);
}
.ge-exam-catalog-header {
    padding: 20px 20px 16px 20px;
}
.ge-exam-catalog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.ge-subject-chip {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}
.ge-exam-catalog-footer {
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Exam Detail View */
.ge-exam-header-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.ge-tag {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
}
.ge-mock-card-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.ge-test-row {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    background: #fafafa;
}
.ge-btn-start-test {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.ge-btn-start-test:hover { background: #1d4ed8; }
.ge-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ge-table th, .ge-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
}
.ge-table th { background: #f8fafc; font-weight: 700; color: #475569; }

/* TCS iON Simulator Specifics */
#ge-cbt-fullscreen-portal,
#ge-app-root.ge-fullscreen-mode,
.tcs-simulator-wrapper.tcs-fullscreen-portal,
.tcs-simulator-wrapper.ge-fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2147483647 !important;
    background: #f1f5f9 !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    overflow-y: auto !important;
}
.tcs-fullscreen-portal .tcs-simulator-wrapper,
#ge-app-root.ge-fullscreen-mode .tcs-simulator-wrapper {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    width: 100vw !important;
    border-radius: 0 !important;
    border: none !important;
}
.tcs-fullscreen-portal .tcs-header {
    flex: 0 0 auto !important;
    background: #0f172a !important;
    padding: 10px 20px !important;
}
.tcs-fullscreen-portal .tcs-subbar {
    flex: 0 0 auto !important;
    background: #e2e8f0 !important;
    padding: 8px 20px !important;
}
.tcs-fullscreen-portal .tcs-body-grid {
    flex: 1 1 auto !important;
    display: grid !important;
    grid-template-columns: 1fr 320px !important;
    height: calc(100vh - 110px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
}
.tcs-fullscreen-portal .tcs-question-panel {
    overflow-y: auto !important;
    height: 100% !important;
    box-sizing: border-box !important;
}
.tcs-fullscreen-portal .tcs-palette-panel {
    overflow-y: auto !important;
    height: 100% !important;
    box-sizing: border-box !important;
}
.tcs-exit-exam-btn {
    background: rgba(220, 38, 38, 0.2) !important;
    border: 1px solid #ef4444 !important;
    color: #fecaca !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
}
.tcs-exit-exam-btn:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
}

.tcs-simulator-wrapper {
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}
.tcs-header {
    background: #0f172a;
    color: #ffffff;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
    gap: 12px;
}
.tcs-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.tcs-ion-badge {
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.4);
}
.tcs-exam-title-head {
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tcs-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.tcs-header-timer {
    background: #000000;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 5px 12px;
    color: #fbbf24;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.tcs-header-timer.urgent {
    border-color: #ef4444;
    color: #f87171;
    animation: gePulseRed 1s infinite;
}
.tcs-timer-icon { font-size: 12px; }
.tcs-timer-digits { font-size: 14px; font-weight: 800; }
.tcs-header-tools {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tcs-head-btn {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tcs-head-btn:hover {
    background: #334155;
    color: #ffffff;
    border-color: #475569;
}
.tcs-head-btn.tcs-exit-btn {
    background: #7f1d1d;
    color: #fecaca;
    border-color: #991b1b;
}
.tcs-head-btn.tcs-exit-btn:hover {
    background: #991b1b;
    color: #ffffff;
}

/* Sections Bar */
.tcs-sections-bar {
    background: #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
    padding: 6px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.tcs-sections-container {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    flex: 1;
    padding: 2px 0;
}
.tcs-sections-label {
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.tcs-sections-tabs {
    display: flex;
    gap: 6px;
    align-items: center;
    overflow-x: auto;
}
.tcs-sec-tab {
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.tcs-sec-tab:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}
.tcs-sec-tab.active {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
    box-shadow: 0 1px 3px rgba(29, 78, 216, 0.3);
}
.tcs-fontsize-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.tcs-fs-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}
.tcs-fs-btn-group {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}
.tcs-fs-btn {
    background: #ffffff;
    border: none;
    border-right: 1px solid #cbd5e1;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    color: #334155;
}
.tcs-fs-btn:last-child {
    border-right: none;
}
.tcs-fs-btn.active {
    background: #e2e8f0;
    color: #0f172a;
}
.tcs-q-text.tcs-fs-small { font-size: 14px; }
.tcs-q-text.tcs-fs-normal { font-size: 16px; }
.tcs-q-text.tcs-fs-large { font-size: 19px; }

/* Mobile View Tabs (Shown on small screens < 768px) */
.tcs-mobile-tabs-bar {
    display: none;
    background: #f8fafc;
    border-bottom: 1px solid #cbd5e1;
}
.tcs-m-tab {
    flex: 1;
    padding: 10px 8px;
    border: none;
    background: transparent;
    border-bottom: 2px solid transparent;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}
.tcs-m-tab.active {
    background: #ffffff;
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

/* Solutions Modal */
.ge-solutions-modal-wrap {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.ge-solutions-card {
    background: #ffffff;
    border-radius: 16px;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.ge-sol-head {
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ge-sol-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.ge-sol-item {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}
.ge-sol-badge-corr {
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}
.ge-sol-badge-inc {
    background: #fee2e2;
    color: #991b1b;
    font-weight: 700;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}
.ge-sol-exp {
    margin-top: 10px;
    padding: 10px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 12px;
    color: #1e3a8a;
    line-height: 1.5;
}

/* Two Column Body Grid */
.tcs-body-grid {
    display: grid;
    grid-template-columns: 1fr 310px;
    min-height: 520px;
    background: #ffffff;
}
.tcs-question-panel {
    background: #ffffff;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e2e8f0;
}
.tcs-q-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.tcs-q-title-row {
    font-size: 14px;
    color: #0f172a;
}
.tcs-q-sec-name {
    font-size: 12px;
    color: #64748b;
    margin-left: 6px;
}
.tcs-q-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tcs-mark-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
}
.tcs-mark-badge.pos {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.tcs-mark-badge.neg {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}
.tcs-lang-box {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #475569;
}
.tcs-lang-label { font-size: 11px; color: #64748b; }
.tcs-lang-select {
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
}
.tcs-lang-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
}
.tcs-lang-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.tcs-q-text {
    font-size: 16px;
    line-height: 1.6;
    color: #0f172a;
    margin-bottom: 20px;
    font-weight: 600;
}
.tcs-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.tcs-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    background: #ffffff;
}
.tcs-option-item:hover { background: #f8fafc; border-color: #cbd5e1; }
.tcs-option-item.selected {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1);
}
.tcs-opt-letter {
    font-weight: 800;
    font-size: 13px;
    color: #1d4ed8;
    min-width: 24px;
}
.tcs-opt-text {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.4;
}
.tcs-bottom-bar {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.tcs-bottom-left, .tcs-bottom-right {
    display: flex;
    gap: 8px;
    align-items: center;
}
.tcs-action-btn {
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.tcs-btn-review {
    background: #ffffff;
    color: #7c3aed;
    border-color: #c4b5fd;
}
.tcs-btn-review:hover { background: #f5f3ff; }
.tcs-btn-clear {
    background: #ffffff;
    color: #475569;
    border-color: #cbd5e1;
}
.tcs-btn-clear:hover { background: #f1f5f9; }
.tcs-btn-prev {
    background: #ffffff;
    color: #475569;
    border-color: #cbd5e1;
}
.tcs-btn-prev:hover { background: #f1f5f9; }
.tcs-btn-save {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
    padding: 9px 22px;
}
.tcs-btn-save:hover { background: #1e40af; }

/* Palette Panel (Exact Match to Image 2) */
.tcs-palette-panel {
    background: #f8fafc;
    padding: 14px;
    display: flex;
    flex-direction: column;
}
.tcs-candidate-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.tcs-candidate-avatar-box {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: #003366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.tcs-candidate-info {
    min-width: 0;
    overflow: hidden;
}
.tcs-cand-name {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.tcs-cand-roll {
    font-size: 11px;
    color: #64748b;
    font-family: monospace;
}
.tcs-cand-node {
    font-size: 10px;
    color: #1d4ed8;
    font-weight: 700;
}

/* 5-Status Question Legend */
.tcs-palette-legend {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    font-size: 11px;
}
.tcs-legend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.tcs-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tcs-legend-row-full {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tcs-pal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 20px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 11px;
    flex-shrink: 0;
}
.tcs-ans { background: #16a34a; color: #ffffff; }
.tcs-not-ans { background: #ea580c; color: #ffffff; }
.tcs-not-vis { background: #94a3b8; color: #ffffff; }
.tcs-rev { background: #7c3aed; color: #ffffff; border-radius: 12px; }
.tcs-rev-ans { background: #7c3aed; color: #ffffff; border: 2px solid #16a34a; border-radius: 12px; }

.tcs-palette-title {
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.tcs-palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 2px;
}
.tcs-pal-btn {
    height: 34px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease;
}
.tcs-pal-btn:active { transform: scale(0.95); }
.tcs-pal-btn.current-q {
    box-shadow: 0 0 0 2px #0f172a, 0 0 0 3px #38bdf8 !important;
}
.tcs-submit-container {
    margin-top: auto;
    padding-top: 14px;
}
.tcs-submit-btn {
    width: 100%;
    background: #16a34a;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
    transition: all 0.15s ease;
}
.tcs-submit-btn:hover {
    background: #15803d;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.4);
}

/* Modals */
.tcs-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}
.tcs-modal-card {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 650px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.tcs-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tcs-modal-header h3 { margin: 0; font-size: 18px; }
.tcs-modal-body { padding: 20px; }

/* Scorecard */
.tcs-scorecard-container {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}
.tcs-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.tcs-metric-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}
.tcs-metric-box .val { font-size: 28px; font-weight: 800; color: #0f172a; }
.tcs-metric-box .lbl { font-size: 12px; font-weight: 600; color: #64748b; margin-top: 4px; }
.tcs-review-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}
.tcs-review-item.correct { border-left: 4px solid #16a34a; }
.tcs-review-item.wrong { border-left: 4px solid #dc2626; }
.tcs-review-item.skipped { border-left: 4px solid #94a3b8; }
.tcs-rev-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}
.tcs-rev-badge.correct { background: #dcfce7; color: #166534; }
.tcs-rev-badge.wrong { background: #fee2e2; color: #991b1b; }
.tcs-rev-badge.skipped { background: #f1f5f9; color: #475569; }
.tcs-explanation {
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #334155;
    margin-top: 8px;
}

/* =========================================================
   STUDENT DASHBOARD STYLES (વિદ્યાર્થી ડેશબોર્ડ)
   ========================================================= */
.ge-dashboard-wrap {
    animation: geFadeIn 0.4s ease-out;
}
.ge-dashboard-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 14px;
    padding: 28px;
    color: #ffffff;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
}
.ge-hero-profile {
    display: flex;
    align-items: center;
    gap: 18px;
}
.ge-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}
.ge-hero-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ge-hero-sub {
    color: #94a3b8;
    font-size: 13px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.ge-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* KPI Summary Cards */
.ge-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.ge-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    animation: geFadeIn 0.4s ease-out;
}
.ge-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}
.ge-kpi-val {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 6px;
}
.ge-kpi-lbl {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Sections */
.ge-dash-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.ge-dash-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
}
.ge-dash-section-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Attempts Table */
.ge-attempts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ge-attempts-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}
.ge-attempts-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.ge-attempts-table tr:hover td {
    background: #f8fafc;
}
.ge-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
}
.ge-status-pill.passed { background: #dcfce7; color: #15803d; }
.ge-status-pill.review { background: #fef3c7; color: #b45309; }

/* Subject Proficiency Bars */
.ge-subject-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ge-subject-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ge-subject-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
}
.ge-subject-bar-wrap {
    height: 9px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}
.ge-subject-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Toast */
.ge-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    font-size: 13px;
    font-weight: 600;
    z-index: 2147483647;
    animation: geSlideUp 0.25s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================================
   RESPONSIVE MOBILE & DESKTOP LAYOUT FOR TCS CBT SIMULATOR
   ========================================================= */

/* Mobile Portrait Mode (< 768px) */
@media screen and (max-width: 768px) {
    .tcs-header {
        padding: 8px 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .tcs-header-left {
        width: 100%;
        justify-content: space-between;
    }
    .tcs-header-right {
        width: 100%;
        justify-content: space-between;
    }
    .tcs-header-timer {
        padding: 4px 8px;
        font-size: 12px;
    }
    .tcs-head-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    .tcs-sections-bar {
        padding: 6px 12px;
        flex-wrap: wrap;
        gap: 6px;
    }
    .tcs-sections-container {
        max-width: 100%;
    }
    
    /* Toggle Tabs on Mobile */
    .tcs-mobile-tabs-bar {
        display: flex !important;
    }
    .tcs-body-grid {
        display: block !important;
        min-height: calc(100vh - 160px);
    }
    .tcs-body-grid.tcs-show-question-mobile .tcs-palette-panel {
        display: none !important;
    }
    .tcs-body-grid.tcs-show-question-mobile .tcs-question-panel {
        display: flex !important;
        width: 100% !important;
        border-right: none !important;
        padding: 16px 12px !important;
        box-sizing: border-box !important;
    }
    .tcs-body-grid.tcs-show-palette-mobile .tcs-question-panel {
        display: none !important;
    }
    .tcs-body-grid.tcs-show-palette-mobile .tcs-palette-panel {
        display: flex !important;
        width: 100% !important;
        border-left: none !important;
        padding: 14px 12px !important;
        box-sizing: border-box !important;
    }
    
    .tcs-q-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .tcs-q-badges-row {
        width: 100%;
        justify-content: space-between;
    }
    .tcs-options-list {
        gap: 8px;
    }
    .tcs-option-item {
        padding: 10px 12px;
    }
    .tcs-bottom-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 12px;
    }
    .tcs-bottom-left, .tcs-bottom-right {
        width: 100%;
        display: flex;
        gap: 6px;
    }
    .tcs-action-btn {
        flex: 1;
        padding: 10px 6px !important;
        font-size: 11px !important;
        text-align: center;
    }
    .tcs-palette-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        max-height: 380px !important;
    }
    .tcs-pal-btn {
        height: 38px !important;
        font-size: 13px !important;
    }
}

/* Mobile Landscape Mode */
@media screen and (max-height: 540px) and (orientation: landscape) {
    .tcs-header {
        padding: 4px 10px !important;
        min-height: 36px !important;
    }
    .tcs-ion-badge { font-size: 10px !important; padding: 2px 6px !important; }
    .tcs-exam-title-head {
        font-size: 11px !important;
        max-width: 180px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .tcs-header-timer {
        padding: 2px 8px !important;
        font-size: 11px !important;
    }
    .tcs-head-btn {
        padding: 2px 6px !important;
        font-size: 10px !important;
    }
    .tcs-sections-bar {
        padding: 3px 8px !important;
        font-size: 11px !important;
    }
    .tcs-sec-tab {
        padding: 2px 6px !important;
        font-size: 10px !important;
    }
    .tcs-body-grid {
        min-height: calc(100vh - 90px) !important;
        min-height: calc(100dvh - 90px) !important;
        grid-template-columns: 1fr 220px !important;
    }
    .tcs-question-panel {
        padding: 8px 12px !important;
        overflow-y: auto !important;
    }
    .tcs-q-text {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }
    .tcs-option-item {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
    .tcs-bottom-bar {
        padding-top: 6px !important;
    }
    .tcs-action-btn {
        padding: 5px 8px !important;
        font-size: 11px !important;
    }
    .tcs-palette-panel {
        width: 220px !important;
        padding: 6px !important;
    }
    .tcs-candidate-card {
        padding: 4px 6px !important;
        margin-bottom: 6px !important;
    }
    .tcs-candidate-avatar-box {
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
    }
    .tcs-cand-name { font-size: 11px !important; }
    .tcs-cand-roll { font-size: 9px !important; }
    .tcs-palette-legend {
        padding: 6px !important;
        margin-bottom: 6px !important;
        font-size: 9px !important;
    }
    .tcs-pal-badge {
        width: 16px !important;
        height: 16px !important;
        font-size: 9px !important;
    }
    .tcs-palette-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        max-height: 120px !important;
        gap: 4px !important;
    }
    .tcs-pal-btn {
        height: 26px !important;
        font-size: 10px !important;
    }
    .tcs-submit-container {
        padding-top: 6px !important;
    }
    .tcs-submit-btn {
        padding: 8px !important;
        font-size: 11px !important;
    }
}

