/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variable System - Brand Light Mode */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-card: #ffffff;
    --bg-card-hover: #f3f4f6;
    --border-color: #e5e7eb;
    --border-color-hover: #d1d5db;
    
    --text-primary: #111111;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    
    --accent-color: #046a38; /* Emerald Green */
    --accent-glow: rgba(4, 106, 56, 0.1);
    --accent-hover: #03522c;
    
    --success-color: #046a38;
    --success-bg: rgba(4, 106, 56, 0.08);
    --warning-color: #d97706;
    --warning-bg: rgba(217, 119, 6, 0.08);
    --danger-color: #dc2626;
    --danger-bg: rgba(220, 38, 38, 0.08);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 0 15px rgba(4, 106, 56, 0.15);
    --transition-speed: 0.3s;
    
    --map-grid-bg: radial-gradient(circle, rgba(4, 106, 56, 0.08) 1px, transparent 1px);
}

/* Warm Warning Shadow Catalog Theme */
body.shadow-mode {
    --bg-primary: #fffbeb;
    --bg-secondary: #fef3c7;
    --bg-card: #ffffff;
    --bg-card-hover: #fffdf5;
    --border-color: #fcd34d;
    --border-color-hover: #f59e0b;
    
    --text-primary: #78350f;
    --text-secondary: #92400e;
    --text-muted: #b45309;
    
    --accent-color: #d97706;
    --accent-glow: rgba(217, 119, 6, 0.1);
    --accent-hover: #b45309;
    
    --success-color: #d97706;
    --success-bg: rgba(217, 119, 6, 0.08);
    --warning-color: #b45309;
    --warning-bg: rgba(180, 83, 9, 0.08);
    --shadow-glow: 0 0 15px rgba(217, 119, 6, 0.15);
    
    --map-grid-bg: radial-gradient(circle, rgba(217, 119, 6, 0.08) 1px, transparent 1px);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

h1, h2, h3, h4, h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Top Header Area - Crisp Emerald Brand Override */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    background-color: #046a38 !important;
    border-bottom: 1px solid #03522c;
    z-index: 10;
    transition: background-color var(--transition-speed) ease;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff !important;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: #ffffff !important;
    color: #046a38 !important;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: none !important;
    transition: transform 0.3s ease;
}

.brand-section:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff !important;
}

/* Center Toggle Switch (In Header) */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: none;
    transition: border-color var(--transition-speed) ease;
}

.toggle-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    user-select: none;
    color: rgba(255, 255, 255, 0.75) !important;
}

.toggle-label.official {
    color: #ffffff !important;
    font-weight: 700;
}

body.shadow-mode .toggle-label.official {
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 600;
}

body.shadow-mode .toggle-label.shadow {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

.switch {
    position: relative;
    display: inline-block;
    width: 2.75rem;
    height: 1.5rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3) !important;
    transition: .4s;
    border-radius: 1.5rem;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.1rem;
    width: 1.1rem;
    left: 0.2rem;
    bottom: 0.2rem;
    background-color: #046a38 !important;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #ffffff !important;
}

input:checked + .slider:before {
    transform: translateX(1.25rem);
    background-color: #046a38 !important;
}

/* User Widget */
.user-widget {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.user-avatar {
    position: relative;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: #ffffff !important;
    color: #046a38 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.user-avatar::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0.5rem;
    height: 0.5rem;
    background: #10b981;
    border: 1px solid #046a38;
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff !important;
}

.user-meta {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Header Login Button */
.login-btn {
    background: transparent;
    border: 1.5px solid #ffffff !important;
    color: #ffffff !important;
    padding: 0.4rem 1.15rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* ==================================================== */
/* SUBSCRIBER HUB LAYOUT & COMPONENTS (Light Mode Premium) */
/* ==================================================== */

.subscriber-hub-body {
    background-color: #ffffff !important;
    color: #111111 !important;
}

/* Header updates for Subscriber Hub */
.hub-header {
    background-color: #046a38 !important;
    border-bottom: 2px solid #03522c;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.brand-logo-link {
    text-decoration: none;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.hub-search-input {
    width: 32rem;
    max-width: 100%;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 2rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    color: #111111;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.hub-search-input:focus {
    border-color: #046a38;
    box-shadow: 0 0 10px rgba(4, 106, 56, 0.15);
}

.hub-user-widget {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
}

.user-welcome-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff !important;
}

/* Search Dropdown styling */
.search-container {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 18rem;
    overflow-y: auto;
}

.search-dropdown.hidden {
    display: none;
}

.search-dropdown-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    color: #111111;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
    text-align: left;
}

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

.search-dropdown-item:hover {
    background-color: rgba(4, 106, 56, 0.05);
}

.search-dropdown-header {
    padding: 0.5rem 1.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

/* Hub Workspace Layout Container */
.hub-container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* 8-Card Grid Matrix */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

/* On medium screen, adjust columns */
@media (max-width: 1024px) {
    .hub-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

/* Square Bounded Cards */
.grid-card {
    background: #ffffff;
    border: 1.5px solid #046a38;
    border-radius: 1rem;
    padding: 1.5rem;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(4, 106, 56, 0.08), var(--shadow-glow);
    border-color: #03522c;
    background-color: rgba(4, 106, 56, 0.01);
}

.card-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon {
    width: 3rem;
    height: 3rem;
    transition: transform 0.2s ease;
}

.grid-card:hover .card-icon {
    transform: scale(1.05);
}

.card-label {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 0.4rem;
}

.card-desc {
    font-size: 0.72rem;
    color: #374151;
    line-height: 1.4;
    max-width: 12rem;
    margin-bottom: 1.5rem; /* leaves room at bottom */
}

/* Special styling for Progress Bar at baseline of Academic Planner card */
.grid-card#card-academic-planner {
    padding-bottom: 3.25rem;
}

.card-progress-container {
    position: absolute;
    bottom: 1rem;
    left: 1.25rem;
    right: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.card-progress-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #046a38;
    text-align: left;
}

.progress-bar-track {
    width: 100%;
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #046a38;
    border-radius: 1rem;
}

/* Floating Control Utility Dock */
.utility-dock {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
}

.utility-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1.5px solid #046a38;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.utility-btn:hover {
    transform: scale(1.08);
}

.utility-ai {
    background-color: #ffffff;
}

.utility-ai:hover {
    background-color: rgba(4, 106, 56, 0.05);
    box-shadow: var(--shadow-glow);
}

.utility-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.utility-plus {
    background-color: #046a38;
    border-color: #046a38;
}

.utility-plus:hover {
    background-color: #03522c;
    border-color: #03522c;
    box-shadow: 0 0 15px rgba(4, 106, 56, 0.3);
}

.plus-symbol {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

/* Floating Drop Zone Menu */
.drop-zone-menu {
    position: absolute;
    bottom: 4rem;
    right: 0;
    width: 22rem;
    background: #ffffff;
    border: 1.5px solid #046a38;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.9rem;
    animation: dzReveal 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #111111;
}

@keyframes dzReveal {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.drop-zone-menu.hidden {
    display: none;
}

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

.drop-zone-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111111;
}

.close-dz-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-muted);
}

.close-dz-btn:hover {
    color: #111111;
}

.drop-zone-instructions {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.25rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.form-group label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #111111;
}

.form-group input {
    border: 1px solid #d1d5db;
    border-radius: 0.4rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
    color: #111111;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #046a38;
}

/* Drag and Drop Box */
.drop-target {
    border: 2px dashed #046a38;
    border-radius: 0.5rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    background-color: rgba(4, 106, 56, 0.02);
    transition: all 0.2s ease;
}

.drop-target.dragover {
    background-color: rgba(4, 106, 56, 0.08);
    border-color: #03522c;
}

.drop-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.5rem;
}

.drop-text {
    font-size: 0.7rem;
    color: #374151;
    font-weight: 500;
}

.selected-file-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: #046a38;
    margin-top: 0.5rem;
    word-break: break-all;
}

.submit-contrib-btn {
    background-color: #046a38;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.25rem;
}

.submit-contrib-btn:hover {
    background-color: #03522c;
}

/* Custom Toast Notification */
.toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--bg-card);
    border: 1.5px solid var(--accent-color);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==================================================== */
/* MAP SEARCH PORTAL STYLING (Light Mode High-Trust) */
/* ==================================================== */

.search-workspace {
    flex: 1;
    display: grid;
    grid-template-columns: 3fr 1.15fr;
    gap: 1.25rem;
    padding: 1.25rem;
    max-height: calc(100vh - 4.5rem);
    min-height: 480px;
    overflow: hidden;
}

/* No breakpoint previously existed here at all — the fixed 3fr/1.15fr grid
   just squeezed .map-column down to its min-content width (~105px on a real
   390px phone) while .sidebar-column kept its full needed width, since fr
   tracks still respect child min-content. Stack them instead, and drop the
   viewport-height clamp/hidden-overflow (sized for a side-by-side desktop
   layout) so the taller stacked content can flow/scroll normally. */
@media (max-width: 640px) {
    .search-workspace {
        grid-template-columns: 1fr;
        max-height: none;
        overflow: visible;
    }
}

.map-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.map-container-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.map-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.map-label-indicator {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Reverses the viewBox reframe back to the multi-state region view (see
   zoomToRegion() in script.js). Hidden until a state is actually zoomed in. */
.back-to-region-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background: var(--bg-secondary, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease, color 0.2s ease;
}

.back-to-region-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.back-to-region-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
}

/* Enhance Zoom Overlay sits in the Lower Left corner */
.map-zoom-controls.lower-left {
    position: absolute;
    bottom: 20px;
    left: 20px;
    top: auto;
    transform: none;
    z-index: 50;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.enhance-label {
    display: none;
}

.zoom-btn {
    width: 1.6rem;
    height: 1.6rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 0.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.zoom-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.map-canvas {
    width: 100%;
    height: 550px;
    position: relative;
    display: block;
    overflow: hidden;
    background: #F4F4F4;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    touch-action: none;
}

/* Applied while zoomed into a state (see updateBackButtonVisibility() in
   script.js) so it's visually clear click-and-drag panning is available. */
.map-canvas.pannable {
    cursor: grab;
}

.map-canvas.pannable.dragging {
    cursor: grabbing;
}

/* Aspect-ratio locked wrapper to align SVG map and absolute-positioned pins overlay */
.map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* USA outline SVG backdrop style. viewBox itself is animated in JS (script.js
   animateViewBox()) to reframe into a state's real bounding box, rather than
   this element being CSS-scaled — see initSearchPage() for why a uniform
   transform: scale() can't resolve pin overlap. pointer-events is enabled so
   individual <path> state shapes are clickable directly. */
.us-outline-svg {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: auto;
    z-index: 1;
}

.state-path {
    fill: #fcfdfd;
    stroke: #CCCCCC;
    stroke-width: 1.2;
    transition: fill 0.3s ease, stroke 0.3s ease;
    cursor: pointer;
}

/* Highlight Utah Hub */
.state-utah {
    fill: rgba(4, 106, 56, 0.04);
    stroke: #046a38;
    stroke-width: 2.2;
}

body.shadow-mode .state-utah {
    fill: rgba(217, 119, 6, 0.04);
    stroke: #d97706;
}

/* pointer-events: none so clicks pass through to the state paths in the SVG
   underneath everywhere except an actual pin/badge button, which opts back
   in below. Pin top/left are recalculated every frame in script.js against
   the currently active viewBox (see renderMapPins()). */
.map-pins-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 25;
    pointer-events: none;
}

/* Leader lines + true-position dots drawn in plain pixel coordinates (its
   viewBox is reset to the container's own pixel size every render, see
   renderMapPins()), so it doesn't need to track the map's geographic viewBox
   at all. Sits above the map but below the pins themselves. */
.pin-leader-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

.pin-leader-line {
    stroke: #6b7280;
    stroke-width: 1.25;
    stroke-dasharray: 3 3;
    opacity: 0.75;
}

.pin-leader-dot {
    fill: #ffffff;
    stroke: #6b7280;
    stroke-width: 1.5;
}

/* Map Search Pins - pointer shape rotated -45deg */
.search-pin {
    position: absolute;
    z-index: 25;
    pointer-events: auto;
    transform: translate(-50%, -50%) rotate(-45deg);
    cursor: pointer;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50% 50% 50% 0;
    border: 1.5px solid #ffffff;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-pin:hover {
    transform: translate(-50%, -56%) rotate(-45deg) scale(1.08);
    box-shadow: var(--shadow-md);
    /* Must exceed both the resting z-index (25) and .active's (30) so the
       moused-over pin always resolves above its neighbors, not behind them. */
    z-index: 40;
}

.search-pin.active {
    box-shadow: var(--shadow-glow), 0 4px 10px rgba(4, 106, 56, 0.15);
    border-color: var(--text-primary);
    z-index: 30;
}

/* Wasatch Front Cluster Badge: larger grouped marker shown in place of the
   6 tightly-packed member pins when zoomed out (see updateClusterVisibility()
   in script.js). Rotated back via the same -45deg/+45deg pin+badge convention
   so its "6 Schools" label reads upright like the individual pin badges. */
.cluster-badge-pin {
    width: 2.75rem;
    height: 2.75rem;
    background: var(--accent-color);
    border: 2px solid #ffffff;
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(4, 106, 56, 0.18);
    z-index: 26;
}

.cluster-badge-pin:hover {
    transform: translate(-50%, -56%) rotate(-45deg) scale(1.08);
    z-index: 40;
}

.cluster-count-badge {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.5rem;
    letter-spacing: -0.02em;
    background: rgba(255, 255, 255, 0.2);
}

/* Note: showing/hiding the cluster badge vs. its 6 member pins is driven entirely
   by updateClusterVisibility() in script.js, which sets .style.display directly.
   This composes with applySidebarFilters()'s existing inline-style visibility
   instead of fighting it via CSS specificity — see script.js for details. */

/* Circular Head Badge - rotated 45deg to cancel pin rotation */
.pin-badge {
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.65rem;
    color: #ffffff;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

/* Adjust font sizes for longer badge labels */
.search-pin[data-id="usu"] .pin-badge,
.search-pin[data-id="slcc"] .pin-badge {
    font-size: 0.38rem;
    letter-spacing: -0.02em;
}

/* Individual university system color systems */
.pin-uofu {
    background: #cc0000;
}
.pin-uofu .pin-badge {
    color: #ffffff;
}

.pin-byu {
    background: #002e5d;
}
.pin-byu .pin-badge {
    color: #ffffff;
}

.pin-usu {
    background: #0f2439;
}
.pin-usu .pin-badge {
    color: #ffffff;
}

.pin-weber {
    background: #4b2e83;
}
.pin-weber .pin-badge {
    color: #ffffff;
}

.pin-slcc {
    background: #f97316;
}
.pin-slcc .pin-badge {
    color: #ffffff;
}

.pin-snow {
    background: #005a9c;
}
.pin-snow .pin-badge {
    color: #eab308; /* Gold S */
}

.pin-utah-tech {
    background: #ba0c2f;
}
.pin-utah-tech .pin-badge {
    color: #ffffff;
}

.pin-uvu {
    background: #275d38;
}
.pin-uvu .pin-badge {
    color: #ffffff;
}

/* Viewport Modal Overlay Container */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

/* Redesigned School Detail Modal: soft cream card, photo-forward hero, premium CTA */
.school-modal-card {
    position: relative;
    background: #fdfaf3;
    border: none;
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 1.25rem;
    padding: 1.25rem;
    width: 24rem;
    max-height: 90%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    color: var(--text-primary);
    animation: modalReveal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalReveal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Toggle Shadow Catalog transitions popup to warm amber cream */
.school-modal-card.shadow-active {
    background: #fef6e0 !important;
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(217, 119, 6, 0.12);
}

/* Close control sits in its own row above the hero photo so it never collides with the logo badge */
.modal-topbar {
    display: flex;
    justify-content: flex-end;
    margin: -0.4rem -0.4rem -0.5rem 0;
}

.modal-close-btn {
    background: rgba(17, 17, 17, 0.05);
    border: none;
    color: var(--text-muted);
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(17, 17, 17, 0.1);
    color: var(--text-primary);
}

/* Hero: campus building photo with the official logo seal prominent on its top-right corner */
.modal-visual-grid {
    position: relative;
}

.visual-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.visual-building {
    background: linear-gradient(160deg, var(--bg-secondary), #eef1ea);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.75rem 1rem;
    gap: 0.3rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.school-modal-card.shadow-active .visual-building {
    background: linear-gradient(160deg, #fff4d6, #ffe8b0);
    border-color: #f3d38a;
}

.visual-building .visual-emoji {
    font-size: 2.75rem;
    line-height: 1;
}

.visual-building .visual-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.visual-logo {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 3.1rem;
    height: 3.1rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.school-modal-card.shadow-active .visual-logo {
    border-color: #f3d38a;
}

.visual-logo .visual-emoji {
    font-size: 1.35rem;
}

.visual-logo .visual-name {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.65rem;
}

.school-modal-card.shadow-active .modal-header {
    border-bottom-color: #f3d38a;
}

.modal-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.modal-school-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
}

.modal-school-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* National + Public rankings stack on the right side of the school name */
.modal-school-ranking {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-color);
    text-align: right;
    max-width: 6.5rem;
    line-height: 1.5;
    flex-shrink: 0;
}

/* Five-stat horizontal row with subtle dividers */
.modal-stats-section {
    display: flex;
    flex-direction: column;
}

.modal-stats-row {
    display: flex;
    align-items: stretch;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.65rem;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.school-modal-card.shadow-active .modal-stats-row {
    border-color: #f3d38a;
}

.modal-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.6rem 0.3rem;
    border-right: 1px solid var(--border-color);
}

.school-modal-card.shadow-active .modal-stat-item {
    border-right-color: #f3d38a;
}

.modal-stat-item:last-child {
    border-right: none;
}

.modal-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.modal-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Always-visible student satisfaction line */
.modal-satisfaction-line {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.modal-satisfaction-line span {
    font-weight: 800;
    color: var(--accent-color);
}

/* Shadow Catalog Toggle */
.modal-shadow-toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid var(--border-color);
}

.school-modal-card.shadow-active .modal-shadow-toggle-container {
    background: #fff8e6;
    border-color: #f3d38a;
}

.modal-shadow-toggle-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.modal-shadow-metrics-box {
    border: 1.5px solid var(--accent-color);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.65rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.shadow-metric-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.shadow-metric-val {
    font-weight: 800;
    color: var(--accent-color);
}

/* Premium bordered "Learn More" CTA */
.modal-action-btn {
    width: 100%;
    background: var(--bg-card);
    border: 1.5px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 0.65rem;
    padding: 0.7rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    box-shadow: var(--shadow-sm);
}

.modal-action-btn:hover {
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* Sidebar Column & Search Filters */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
}

.filter-panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.filter-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.filter-group-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    display: none;
}

.custom-checkbox {
    width: 0.9rem;
    height: 0.9rem;
    border: 1.5px solid var(--border-color-hover);
    border-radius: 0.25rem;
    background: #ffffff;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-container:hover .custom-checkbox {
    border-color: var(--accent-color);
}

.checkbox-container input:checked + .custom-checkbox {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-container input:checked + .custom-checkbox::after {
    content: "";
    position: absolute;
    top: 0.05rem;
    left: 0.22rem;
    width: 0.22rem;
    height: 0.45rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-dropdown {
    background: #ffffff;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color-hover);
    padding: 0.55rem;
    border-radius: 0.4rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-dropdown:focus {
    border-color: var(--accent-color);
}

.filter-input-text {
    background: #ffffff;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color-hover);
    padding: 0.55rem 0.75rem;
    border-radius: 0.4rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s ease;
}

.filter-input-text:focus {
    border-color: var(--accent-color);
}

/* Green Brand Action Buttons */
.apply-filters-btn {
    background: var(--accent-color);
    border: none;
    color: #ffffff;
    padding: 0.65rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.apply-filters-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 10px rgba(4, 106, 56, 0.15);
}

/* Ad Placement block */
.ad-space-block {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ad-border-container {
    flex: 1;
    border: none;
    border-radius: 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    background: transparent;
}

.ad-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    font-size: 0.52rem;
    font-weight: 800;
    text-transform: uppercase;
    background: transparent;
    color: #64748b; /* lighter grey tone */
    letter-spacing: 0.12em; /* spaced apart */
    z-index: 2;
    pointer-events: none;
}

#map-ad-rotator {
    position: relative;
    width: 100%;
    height: 185px; /* fixed height to constrain vertical layout completely */
    border-radius: 12px; /* 12px border radius */
    overflow: hidden;
}

.ad-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out, visibility 0.8s;
    border: 1px solid rgba(255, 255, 255, 0.1); /* thin border */
    border-radius: 12px; /* 12px border radius */
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    text-align: left;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35); /* external shadow */
}

.ad-frame.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ad-sponsor-label {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8; /* muted slate */
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.ad-headline {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f8fafc; /* premium light text */
    line-height: 1.25;
    margin-bottom: 0.3rem;
    white-space: normal; /* strictly normal to constrain text wrapping */
}

.ad-subtext {
    font-size: 0.7rem;
    color: #cbd5e1; /* slate text */
    line-height: 1.35;
    margin-bottom: 0.6rem;
    white-space: normal; /* strictly normal to constrain text wrapping */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.ad-cta-btn {
    align-self: flex-start;
    border: none;
    border-radius: 0.375rem;
    padding: 0.45rem 0.85rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ad-cta-btn:hover {
    transform: translateY(-1px);
}

/* Blueprint MCAT Prep Custom Branding (Ad Frame A) */
#ad-frame-a {
    background: linear-gradient(135deg, #0d233a, #071524); /* deep navy gradient */
}

#ad-frame-a .ad-headline {
    color: #ffffff; /* crisp white title */
}

#ad-frame-a .ad-cta-btn {
    background-color: #06b6d4; /* vibrant brand cyan */
    color: #ffffff;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

#ad-frame-a .ad-cta-btn:hover {
    background-color: #0891b2;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

/* U-Gear Shop Custom Branding (Ad Frame B) */
#ad-frame-b {
    background: linear-gradient(135deg, #1f1214, #120a0b); /* deep crimson lifestyle aesthetic */
}

#ad-frame-b .ad-headline {
    color: #f8fafc;
}

#ad-frame-b .ad-cta-btn {
    background-color: #f59e0b; /* amber/gold */
    color: #1f1214;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

#ad-frame-b .ad-cta-btn:hover {
    background-color: #d97706;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

/* ==================================================== */
/* ACADEMIC PLANNER SUB-PAGE (planner.html) STYLING */
/* ==================================================== */

.planner-page-body {
    background-color: #ffffff !important;
    color: #111111 !important;
}

.planner-header {
    background-color: #046a38 !important;
    border-bottom: 2px solid #03522c;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
}

.back-hub-btn {
    text-decoration: none;
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.back-hub-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
}

.user-planner-context {
    font-size: 0.8rem;
    font-weight: 600;
}

.planner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
}

/* Trust Verification Status Banner */
.trust-verification-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-left: 4px solid #046a38;
    border-top: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 0.75rem 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #111111;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trust-banner-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-banner-right {
    color: #555555;
}

@media (max-width: 768px) {
    .trust-verification-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}


/* Sync Transcript Simulator Card */
.sync-panel-card {
    background: #ffffff;
    border: 1.5px solid #046a38;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sync-panel-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sync-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .sync-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.transcript-drop-zone {
    flex: 1.5;
    border: 2px dashed #046a38;
    border-radius: 0.5rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    background-color: rgba(4, 106, 56, 0.02);
    transition: all 0.2s ease;
}

.transcript-drop-zone.dragover {
    background-color: rgba(4, 106, 56, 0.08);
    border-color: #03522c;
}

.transcript-file-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #046a38;
    margin-top: 0.4rem;
}

.dz-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
}

.major-select-group, .standing-select-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: left;
}

.major-select-group label, .standing-select-group label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.target-major-select, .academic-standing-select {
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 0.4rem;
    padding: 0.55rem;
    font-size: 0.8rem;
    color: #111111;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.target-major-select:focus, .academic-standing-select:focus {
    border-color: #046a38;
}

.change-choice-btn {
    background: none;
    border: none;
    color: #046a38;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    margin-left: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: underline;
    font-family: inherit;
    transition: color 0.2s ease;
}

.change-choice-btn:hover {
    color: #03522c;
}

.process-btn {
    background-color: #046a38;
    color: #ffffff;
    border: none;
    border-radius: 0.4rem;
    padding: 0.6rem 1.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
    height: 2.3rem;
}

.process-btn:hover {
    background-color: #03522c;
}

.planner-overall-progress {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.progress-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
}

.progress-info-title {
    color: #374151;
}

.progress-info-val {
    color: #046a38;
}

.planner-progress-track {
    width: 100%;
    height: 0.65rem;
    background-color: #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
}

.planner-progress-fill {
    height: 100%;
    background-color: #046a38;
    border-radius: 1rem;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 4-Year Matrix grid section */
.matrix-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.matrix-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111111;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    width: 100%;
}

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

@media (max-width: 640px) {
    .matrix-grid {
        grid-template-columns: 1fr;
    }
}

.year-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.year-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #111111;
    text-align: center;
    border-bottom: 1.5px solid #d1d5db;
    padding-bottom: 0.35rem;
}

.semester-card {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-speed) ease;
}

.semester-card:hover {
    border-color: #046a38;
}

.semester-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.4rem;
    text-align: left;
}

.semester-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: #111111;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.course-row {
    background: #f9fafb;
    border-left: 3px solid #d1d5db;
    padding: 0.55rem 0.75rem;
    border-radius: 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #111111;
    font-weight: 600;
    text-align: left;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.course-row.completed {
    border-left-color: #046a38;
    background-color: rgba(4, 106, 56, 0.01);
}

.completed-badge {
    background-color: rgba(4, 106, 56, 0.08);
    border: 1px solid #046a38;
    color: #046a38;
    border-radius: 1rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.6rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.course-info {
    word-break: break-word;
}

/* Elective Panel Options Drawer */
.elective-row {
    flex-direction: column;
    gap: 0.5rem;
    border-left-color: #046a38;
    background-color: rgba(4, 106, 56, 0.02);
}

.elective-display-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.elective-placeholder {
    font-style: italic;
    color: #4b5563;
}

.select-track-btn {
    background: transparent;
    border: 1.5px solid #046a38;
    color: #046a38;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.select-track-btn:hover {
    background: rgba(4, 106, 56, 0.08);
}

.elective-options-panel {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
    border-top: 1px dashed #046a38;
    padding-top: 0.6rem;
    margin-top: 0.25rem;
}

.elective-options-panel.hidden {
    display: none;
}

.elective-option {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.35rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.elective-option:hover {
    border-color: #046a38;
    background-color: rgba(4, 106, 56, 0.02);
}

.opt-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #111111;
}

.opt-meta {
    font-size: 0.58rem;
    color: #046a38;
    font-weight: 600;
}

/* Strategic Trap Guard Cognitive Load Warning Box */
.cognitive-load-alert {
    background-color: #fffbeb;
    border: 1.5px solid #dc2626;
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: #dc2626;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.68rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    text-align: left;
}

.cognitive-load-alert svg {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
    stroke: #dc2626;
}

.alert-text {
    font-weight: 700;
}

.alert-desc {
    margin-top: 0.2rem;
    color: #b45309;
    font-weight: 600;
}

/* ==================================================== */
/* MYTA STUDY HUB SUB-PAGE (study-hub.html) STYLING */
/* ==================================================== */

.study-hub-page-body {
    background-color: #ffffff !important;
    color: #111111 !important;
}

.study-hub-header {
    background-color: #046a38 !important;
    border-bottom: 2px solid #03522c;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
}

.study-hub-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.registration-banner {
    background-color: rgba(4, 106, 56, 0.05);
    border: 1.5px solid #046a38;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #046a38;
    text-align: center;
    letter-spacing: 0.02em;
}

.class-matrix-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.class-matrix-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

/* Rectangular Class Card Layout */
.course-rect-card {
    background: #ffffff;
    border: 1.5px solid #e0e0e0;
    border-radius: 1rem;
    padding: 1.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s ease,
                box-shadow 0.25s ease,
                background-color 0.25s ease;
    user-select: none;
}

.course-rect-card:hover {
    transform: translateY(-2px);
    border-color: #046a38;
    box-shadow: 0 8px 20px rgba(4, 106, 56, 0.06), var(--shadow-glow);
    background-color: rgba(4, 106, 56, 0.01);
}

.course-rect-card.active-drawer {
    border-color: #046a38;
    background-color: rgba(4, 106, 56, 0.01);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.card-main-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.course-icon-container {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.course-svg {
    width: 3rem;
    height: 3rem;
    stroke: #046a38;
    transition: transform 0.2s ease;
}

.course-rect-card:hover .course-svg {
    transform: scale(1.05);
}

.course-card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.course-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111111;
}

.course-stats {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #374151;
    font-weight: 500;
}

.divider-dot {
    color: #9ca3af;
    font-weight: bold;
}

.grade-highlight {
    color: #046a38;
    font-weight: 700;
}

.toggle-arrow-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chevron-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-rect-card.active-drawer .chevron-icon {
    transform: rotate(180deg);
}

/* Expandable Sub-drawer options */
.course-sub-drawer {
    border-top: 1px dashed #e5e7eb;
    padding-top: 1.25rem;
    margin-top: 1rem;
    width: 100%;
}

.course-sub-drawer.hidden {
    display: none;
}

/* Inner Learning Content Tabs & Panels */
.tab-nav-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1.5px solid #e5e7eb;
    padding-bottom: 0.6rem;
    width: 100%;
}

/* Four tab labels (including "Interactive AI Sandbox") don't fit a 390px-wide
   screen without wrapping or overflowing past the edge — flex items neither
   shrink their text nor wrap by default. Make the bar scroll horizontally
   instead, keeping each tab at a legible, tappable size. */
@media (max-width: 640px) {
    .tab-nav-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tab-nav-bar::-webkit-scrollbar {
        display: none;
    }

    .tab-nav-bar .tab-btn {
        flex: none;
        white-space: nowrap;
    }
}

.tab-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    padding: 0.4rem 1.15rem;
    border-radius: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #111111;
    background-color: #f3f4f6;
}

.tab-btn.active {
    color: #ffffff !important;
    background-color: #046a38 !important;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(4, 106, 56, 0.2);
}

.tab-content-container {
    width: 100%;
}

.tab-content-panel.hidden {
    display: none;
}

/* Videos Panel Styles */
.videos-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.video-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.video-row:hover {
    border-color: #046a38;
}

/* .video-row packs 5 flex children (play icon, title/meta, progress, source
   tag, engagement bar) in one line with no wrap — on narrow screens this
   doesn't just look cramped, it overflows the row's container with
   overflow-x: visible all the way up to the page itself, which is what
   forces mobile Safari to expand its layout viewport and "zoom out" the
   whole Study Hub page (the same underlying cause as the tab bar overflow
   below). Stacking the row vertically keeps everything inside the viewport. */
@media (max-width: 640px) {
    .video-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .video-row .engagement-bar {
        margin-left: 0;
    }
}

.video-play-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background-color: rgba(4, 106, 56, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.video-play-icon svg {
    color: #046a38;
    fill: #046a38;
}

.video-details {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
}

.video-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #111111;
    line-height: 1.35;
}

.video-meta {
    font-size: 0.65rem;
    color: #6b7280;
}

.video-progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 130px;
}

.video-progress-text {
    font-size: 0.65rem;
    font-weight: 700;
    color: #046a38;
    text-align: right;
}

.video-progress-track {
    width: 100%;
    height: 0.35rem;
    background-color: #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
}

.video-progress-fill {
    height: 100%;
    background-color: #046a38;
    border-radius: 1rem;
}

/* Quizzes Panel Styles */
.quizzes-panel {
    width: 100%;
}

.quiz-question-box {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.quiz-question {
    font-size: 0.8rem;
    font-weight: 700;
    color: #111111;
    line-height: 1.4;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.quiz-option-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.4rem;
    transition: all 0.2s ease;
}

.quiz-option-label:hover {
    border-color: #046a38;
    background-color: rgba(4, 106, 56, 0.02);
}

.quiz-option-label input {
    cursor: pointer;
}

.validate-quiz-btn {
    background-color: #046a38;
    color: #ffffff;
    border: none;
    border-radius: 0.4rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease;
    align-self: flex-start;
}

.validate-quiz-btn:hover {
    background-color: #03522c;
}

/* Anatomy Quiz Freeform Highlight + Callout Label (shared by the live quiz and the Creator Studio preview) */
.anatomy-highlight-glow {
    fill: var(--accent-color);
    fill-opacity: 0.35;
    stroke: none;
}

.anatomy-highlight-shape {
    fill: var(--accent-color);
    fill-opacity: 0.22;
    stroke: var(--accent-color);
    stroke-width: 1.4;
    stroke-linejoin: round;
}

.anatomy-callout-line {
    stroke: var(--accent-color);
    stroke-width: 0.6;
    fill: none;
}

.anatomy-callout-arrowhead {
    fill: var(--accent-color);
}

.anatomy-callout-anchor-dot {
    fill: var(--accent-color);
}

.anatomy-callout-label-bg {
    fill: var(--bg-card);
    stroke: var(--accent-color);
    stroke-width: 0.35;
}

.anatomy-callout-label-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 4px;
    fill: var(--text-primary);
}

/* Creator Studio: highlight-authoring mode toggle pills */
.creator-mode-btn {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 0.4rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
}

.creator-mode-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.creator-mode-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

/* Creator Studio: click-to-place crosshair cursor once a diagram is loaded */
#canvas-wrapper.creator-authoring-active {
    cursor: crosshair;
}

.quiz-result-box {
    padding: 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.72rem;
    line-height: 1.4;
    margin-top: 0.5rem;
    font-weight: 600;
}

.quiz-result-box.correct {
    background-color: rgba(4, 106, 56, 0.08);
    border: 1.5px solid #046a38;
    color: #046a38;
}

.quiz-result-box.incorrect {
    background-color: rgba(220, 38, 38, 0.08);
    border: 1.5px solid #dc2626;
    color: #dc2626;
}

/* AI Sandbox Split View Styles */
.sandbox-workspace {
    display: flex;
    gap: 1.25rem;
    min-height: 13rem;
}

@media (max-width: 768px) {
    .sandbox-workspace {
        flex-direction: column;
    }
}

.sandbox-visual-card {
    flex: 1;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.visual-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.equation-box {
    padding: 0.75rem;
    background: rgba(4, 106, 56, 0.02);
    border: 1.5px solid #046a38;
    border-radius: 0.35rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #046a38;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card-desc {
    font-size: 0.65rem;
    color: #6b7280;
    line-height: 1.4;
}

.sandbox-terminal-card {
    flex: 1.35;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #111111;
    color: #ffffff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    min-height: 13rem;
}

.terminal-chat-log {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2.75rem;
    padding-right: 0.25rem;
    max-height: 8.5rem;
}

.chat-msg {
    max-width: 85%;
    padding: 12px 16px; /* proper breathing room */
    border-radius: 0.5rem;
    font-size: 0.7rem;
    line-height: 1.35;
    white-space: normal; /* Force natural text wrapping */
    word-break: break-word; /* wrap long scientific words */
}

.chat-msg.user-msg {
    background-color: rgba(255, 255, 255, 0.15);
    align-self: flex-end;
    text-align: right;
    display: inline-block;
}

.chat-msg.ai-msg,
.chat-message.ai {
    background-color: rgba(4, 106, 56, 0.3);
    border: 1px solid #046a38;
    align-self: flex-start;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.terminal-input-row {
    position: absolute;
    bottom: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
    display: flex;
    gap: 0.5rem;
}

.terminal-input {
    flex: 1;
    background: #222222;
    border: 1px solid #333333;
    color: #ffffff;
    border-radius: 0.25rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.terminal-input:focus {
    border-color: #046a38;
}

.terminal-send-btn {
    background-color: #046a38;
    border: none;
    color: #ffffff;
    border-radius: 0.25rem;
    padding: 0.4rem 1.15rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.terminal-send-btn:hover {
    background-color: #03522c;
}

/* LOCAL FLOATING CIRCULAR ACTION BUTTON */
.floating-action-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    background-color: #0F5132; /* Corporate Emerald */
    color: white;
    font-size: 28px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    pointer-events: auto;
}

.floating-action-btn:hover {
    transform: scale(1.05);
}

.floating-action-btn:active {
    transform: scale(0.96);
}

/* SOURCING IDENTIFICATION TAGS */
.source-tag {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
}
.tag-official {
    background-color: #0F5132;
    color: white;
}
.tag-student {
    background-color: #E2E8F0;
    color: #4A5568;
    border: 1px solid #CBD5E0;
}

#custom-survey-modal[style*="display: block"] {
    display: flex !important;
}

/* ENGAGEMENT BAR & VOTING STYLES */
.engagement-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    color: #718096;
    margin-top: 0.75rem;
}

.video-row .engagement-bar {
    margin-top: 0;
    margin-left: auto;
}

.vote-action {
    cursor: pointer;
    margin-right: 12px;
    transition: color 0.2s;
    user-select: none;
}

.like-btn:hover {
    color: #0F5132;
    font-weight: bold;
}

.dislike-btn:hover {
    color: #BA1C21;
    font-weight: bold;
}

.plus-symbol {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;
    margin-top: -2px;
    user-select: none;
}

/* SMART MATERIAL UPLOAD MODAL */
.upload-modal-card {
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-subtitle {
    font-size: 0.72rem;
    color: #6b7280;
    margin-top: 0.35rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    text-align: left;
}

.upload-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.form-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: #046a38;
}

.material-type-options {
    display: flex;
    gap: 0.75rem;
}

.material-type-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    user-select: none;
}

.material-type-pill:hover {
    border-color: #046a38;
    background-color: rgba(4, 106, 56, 0.01);
}

.material-type-pill input[type="radio"] {
    margin: 0;
    accent-color: #046a38;
    cursor: pointer;
}

.material-type-pill:has(input[type="radio"]:checked) {
    border-color: #046a38;
    background-color: rgba(4, 106, 56, 0.04);
    color: #046a38;
    font-weight: 700;
}

.form-select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
}

.form-select:focus {
    border-color: #046a38;
}

.material-dropzone {
    border: 2px dashed #046a38;
    background-color: rgba(4, 106, 56, 0.01);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.material-dropzone:hover, .material-dropzone.dragover {
    background-color: rgba(4, 106, 56, 0.04);
    border-color: #03522c;
}

.dropzone-icon {
    stroke: #046a38;
}

.dropzone-text {
    font-size: 0.7rem;
    color: #4b5563;
    font-weight: 500;
    line-height: 1.35;
}

.file-status-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: #046a38;
    margin-top: 0.25rem;
}

.submit-material-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem;
    font-size: 0.8rem;
    border-radius: 0.5rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Course Detail Modal Card Layout */
.course-detail-card {
    position: relative;
    background: #ffffff;
    border: 2px solid #046a38;
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 1rem;
    padding: 2rem;
    width: 36rem;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: #111111;
    font-family: 'Outfit', sans-serif;
    animation: modalReveal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.course-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.75rem;
}

.course-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: #046a38;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    font-weight: 700;
    color: #555555;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-modal-btn:hover {
    color: #046a38;
}

.course-modal-body {
    display: flex;
    gap: 2rem;
}

@media (max-width: 600px) {
    .course-modal-body {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.course-modal-col-left, .course-modal-col-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-modal-col-left h4, .course-modal-footer h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555555;
}

.course-modal-description {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4b5563;
}

.faculty-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faculty-tab-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-left: 4px solid transparent;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.faculty-tab-btn:hover {
    background-color: #f1f5f9;
}

.faculty-tab-btn.active {
    color: #046a38;
    background-color: rgba(4, 106, 56, 0.05);
    border-color: rgba(4, 106, 56, 0.15);
    border-left: 4px solid #046a38;
}

.faculty-profile-subpanel {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.subpanel-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.subpanel-item.style-notes-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.subpanel-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #6b7280;
    min-width: 4.5rem;
}

.faculty-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.faculty-rating-text {
    font-weight: 700;
    color: #111111;
}

.faculty-difficulty {
    font-weight: 700;
    color: #d9534f;
}

.faculty-style {
    margin: 0;
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.4;
}

.course-modal-action {
    margin-top: 0.5rem;
}

.syllabus-btn {
    display: block;
    width: 100%;
    background-color: #046a38;
    color: #ffffff;
    border: 2px solid #046a38;
    padding: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: 'Outfit', sans-serif;
}

.syllabus-btn:hover {
    background-color: #03522c;
    border-color: #03522c;
}

.metric-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.metric-group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555555;
}

.metric-val-display {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111111;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #046a38;
    border-radius: 4px;
}

.progress-bar-fill.accent-red {
    background-color: #d9534f;
}

.course-modal-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sentiment-highlights {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .sentiment-highlights {
        flex-direction: column;
        gap: 1rem;
    }
}

.sentiment-box {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 6px;
}

.pro-box {
    background-color: rgba(4, 106, 56, 0.05);
    border: 1px solid rgba(4, 106, 56, 0.15);
}

.con-box {
    background-color: rgba(217, 83, 79, 0.05);
    border: 1px solid rgba(217, 83, 79, 0.15);
}

.sentiment-box h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pro-box h5 {
    color: #046a38;
}

.con-box h5 {
    color: #d9534f;
}

.sentiment-box ul {
    list-style: disc;
    padding-left: 1.1rem;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #333333;
}

/* Elective Voice-Selected Block Styles */
.voice-selected-card {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    background-color: #EDF7ED !important;
    border: 1px solid #C3E6CB !important;
}

.voice-selected-card .elective-display-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.voice-selected-card .change-choice-btn {
    margin-left: auto;
}

/* Campus Map Subpage Layout Styles */
.campus-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: #111111;
    font-family: 'Outfit', sans-serif;
}

.campus-map-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .campus-map-grid {
        grid-template-columns: 1fr;
    }
}

.map-viewport-card {
    background: #ffffff;
    border: 2px solid #046a38;
    box-shadow: var(--shadow-md), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.map-school-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #046a38;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.map-school-subtitle {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 600;
}

.map-viewport-window {
    position: relative;
    width: 100%;
    height: 440px;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-zoom-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.zoom-btn {
    width: 2.2rem;
    height: 2.2rem;
    background-color: #ffffff;
    border: 1.5px solid #046a38;
    color: #046a38;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.zoom-btn:hover {
    background-color: #046a38;
    color: #ffffff;
}

.map-svg-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-svg-container svg {
    max-width: 95%;
    max-height: 95%;
    transform-origin: center center;
    transition: transform 0.25s ease;
}

/* Building Search */
.map-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.map-search-icon {
    position: absolute;
    left: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
}

.campus-search-input {
    width: 100%;
    padding: 0.65rem 0.9rem 0.65rem 2.35rem;
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.campus-search-input:focus {
    outline: none;
    border-color: #046a38;
    box-shadow: 0 0 0 3px rgba(4, 106, 56, 0.12);
}

.campus-search-results {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    z-index: 30;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    box-shadow: var(--shadow-lg);
    max-height: 280px;
    overflow-y: auto;
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.campus-search-results.hidden {
    display: none;
}

.campus-search-result-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.4rem;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.campus-search-result-item:hover,
.campus-search-result-item.active {
    background: var(--bg-secondary);
}

.campus-search-result-abbr {
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #046a38;
    background: rgba(4, 106, 56, 0.1);
    border-radius: 0.3rem;
    padding: 0.2rem 0.4rem;
    min-width: 2.6rem;
    text-align: center;
}

.campus-search-result-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.campus-search-empty {
    padding: 0.75rem 0.6rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* Building Info Panel */
.building-info-panel {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 20;
    max-width: 280px;
    background: var(--bg-card);
    border: 1.5px solid #046a38;
    border-left: 5px solid #046a38;
    border-radius: 0.6rem;
    box-shadow: var(--shadow-lg);
    padding: 0.9rem 1rem;
    animation: buildingInfoRise 0.2s ease;
}

.building-info-panel.hidden {
    display: none;
}

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

.building-info-close {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.building-info-close:hover {
    color: var(--text-primary);
}

.building-info-abbr {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #046a38;
    background: rgba(4, 106, 56, 0.1);
    border-radius: 0.3rem;
    padding: 0.15rem 0.4rem;
    margin-bottom: 0.4rem;
}

.building-info-name {
    margin: 0 0 0.35rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    padding-right: 1rem;
}

.building-info-desc {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Building highlight pulse — used both on direct click and on search-select */
@keyframes buildingPulse {
    0%, 100% {
        filter: drop-shadow(0 0 0px #046a38);
    }
    50% {
        filter: drop-shadow(0 0 7px #046a38) drop-shadow(0 0 3px #046a38);
    }
}

.building-pulse {
    animation: buildingPulse 0.7s ease-in-out 3;
}

.building-selected {
    stroke-width: 3 !important;
}

.map-ledger-panel {
    background: #ffffff;
    border: 2px solid #046a38;
    box-shadow: var(--shadow-md);
    border-radius: 1rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ledger-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #046a38;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ledger-desc {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #4b5563;
}

.map-ledger-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.map-ledger-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #046a38;
    border-radius: 0.35rem;
    color: #111111;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    font-family: inherit;
}

.map-ledger-link:hover {
    background-color: rgba(4, 106, 56, 0.04);
    border-color: rgba(4, 106, 56, 0.15);
}

.map-ledger-link::after {
    content: "→";
    margin-left: 0.5rem;
    color: #046a38;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.map-ledger-link:hover::after {
    transform: translateX(3px);
}

/* General Help Subpage Layout Styles */
.help-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: #111111;
    font-family: 'Outfit', sans-serif;
}

.help-search-wrapper {
    width: 100%;
    margin-bottom: 0.5rem;
}

#help-search-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: #111111;
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    box-sizing: border-box;
    transition: all 0.2s ease;
    font-family: inherit;
}

#help-search-input:focus {
    outline: none;
    border-color: #046a38;
    box-shadow: 0 0 0 3px rgba(4, 106, 56, 0.1);
}

.help-sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: start;
}

@media (max-width: 900px) {
    .help-sections-grid {
        grid-template-columns: 1fr;
    }
}

.help-section-card {
    background: #ffffff;
    border: 2px solid #046a38;
    box-shadow: var(--shadow-md), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.help-section-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #046a38;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 0.75rem;
}

.help-section-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.help-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #046a38;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.help-item:hover {
    background-color: rgba(4, 106, 56, 0.02);
    border-color: rgba(4, 106, 56, 0.15);
    border-left-color: #046a38;
    transform: translateY(-1px);
}

.help-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111111;
    margin: 0;
}

.help-item-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #4b5563;
    margin: 0;
}

.help-form-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.1rem;
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #046a38;
    border-radius: 0.5rem;
    color: #111111;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    font-family: inherit;
    box-sizing: border-box;
}

.help-form-link:hover {
    background-color: rgba(4, 106, 56, 0.04);
    border-color: rgba(4, 106, 56, 0.15);
    transform: translateY(-1px);
}

.help-form-link::after {
    content: "→";
    margin-left: 0.5rem;
    color: #046a38;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.help-form-link:hover::after {
    transform: translateX(3px);
}

/* Dashboard Alert & Notification Center Styles */
.dashboard-alert-center {
    position: absolute;
    top: 10px;
    right: 2rem;
    width: 280px;
    z-index: 100;
    background-color: #ffffff;
    border: 1.5px solid #333333;
    border-radius: 0.75rem;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dashboard-alert-center.hidden {
    display: none;
}

/* On mobile, the absolute top-right positioning above has no reserved space
   in the flex-centered .hub-container, so the alert box floats directly over
   the card grid instead of sitting above it. Below this width, take it out
   of absolute positioning entirely and let it sit in normal document flow
   (it's already first in the DOM, before .hub-grid) so it stacks above the
   cards with real spacing instead of overlapping them. */
@media (max-width: 640px) {
    .dashboard-alert-center {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-bottom: 1.25rem;
    }
}

.alert-card {
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    font-size: 12px;
    line-height: 1.4;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.alert-card.timeline-info {
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    color: #111111;
}

.alert-card.milestone-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.alert-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    width: 100%;
    box-sizing: border-box;
    user-select: none;
}

.alert-icon-col {
    font-size: 1.1rem;
    line-height: 1;
    user-select: none;
}

.alert-preview {
    flex: 1;
    margin: 0;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alert-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    box-sizing: border-box;
    padding: 0 0.85rem;
}

.alert-card.expanded .alert-card-body {
    max-height: 200px;
    padding: 0 0.85rem 0.75rem 0.85rem;
}

.alert-text {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.alert-link {
    font-weight: 700;
    text-decoration: underline;
    color: inherit;
    cursor: pointer;
    align-self: flex-start;
    transition: opacity 0.2s ease;
}

.alert-link:hover {
    opacity: 0.8;
}

.dismiss-alert-btn {
    cursor: pointer;
    font-weight: bold;
    margin-left: auto;
    padding-left: 10px;
    transition: color 0.2s ease;
}

.dismiss-alert-btn:hover {
    color: #cc0022;
}

/* major select row styling */
.major-select-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.major-select-row .target-major-select {
    flex: 1;
}

/* Compare School Curricula Button */
.compare-curricula-btn {
    background: #ffffff;
    border: 1.5px solid #111111;
    border-radius: 0.4rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
    color: #111111;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.compare-curricula-btn:hover {
    background: #f4f4f4;
    border-color: #046a38;
    color: #046a38;
}

/* Curriculum Comparison Modal */
.comparison-modal-card {
    position: relative;
    background: #ffffff;
    border: 1.5px solid #111111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    padding: 1.5rem;
    width: 36rem;
    max-width: 95%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #111111;
    transform: translateY(-50px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .comparison-modal-card {
    transform: translateY(0);
}

.semester-row {
    transition: background-color 0.2s ease;
}

.semester-row:hover {
    background-color: rgba(0, 0, 0, 0.015);
}

.semester-row .courses-container {
    margin-top: 0.2rem;
}

@media (max-width: 768px) {
    .semester-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
        padding: 1rem 0 !important;
    }
    .semester-row .left-zone,
    .semester-row .right-zone {
        width: 100% !important;
        align-items: flex-start !important;
    }
    .semester-row .right-zone .courses-container {
        justify-content: flex-start !important;
    }
    .semester-row .middle-zone {
        width: 100% !important;
        justify-content: flex-start !important;
    }
}

/* ==========================================================================
   ENVIRONMENT 7: FINANCIAL PLANNER PORTAL
   ========================================================================== */
.financial-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-sizing: border-box;
}

.financial-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .financial-grid {
        grid-template-columns: 1fr;
    }
}

.financial-card {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.6rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.financial-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111111;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #046a38;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.financial-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.financial-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: left;
}

.financial-form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.financial-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.financial-input-prefix {
    position: absolute;
    left: 0.75rem;
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 600;
    pointer-events: none;
}

.financial-input {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 0.4rem;
    padding: 0.55rem 0.55rem 0.55rem 1.5rem;
    font-size: 0.85rem;
    color: #111111;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.financial-input:focus {
    border-color: #046a38;
}

.financial-select {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 0.4rem;
    padding: 0.55rem;
    font-size: 0.85rem;
    color: #111111;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.financial-select:focus {
    border-color: #046a38;
}

/* Compare toggle button styling */
.compare-toggle-btn {
    background: #ffffff;
    border: 1.5px solid #111111;
    border-radius: 0.4rem;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #111111;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    width: 100%;
}

.compare-toggle-btn.uofu-active {
    border-color: #046a38;
    color: #ffffff;
    background: #046a38;
}

.compare-toggle-btn.byu-active {
    border-color: #111111;
    color: #ffffff;
    background: #111111;
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slider-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b5563;
}

.financial-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    margin: 0.5rem 0;
}

.financial-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #046a38;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.financial-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Absolute Total Savings Display Card */
.savings-safety-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 2px solid #111111;
    border-radius: 0.6rem;
    padding: 2rem;
    text-align: center;
    box-sizing: border-box;
}

.savings-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4b5563;
}

.savings-box {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #046a38;
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
    transition: all 0.25s ease;
}

.savings-box.positive {
    color: #046a38;
    background: rgba(4, 106, 56, 0.06);
}

.savings-box.negative {
    color: #d32f2f;
    background: rgba(211, 47, 47, 0.06);
}

.savings-explanation-card {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    width: 100%;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #4b5563;
    text-align: left;
}

.savings-explanation-card p {
    margin: 0.25rem 0;
}

/* Curriculum Comparison bullets */
.comparison-bullets {
    padding-left: 1.2rem;
    margin: 0.75rem 0 0 0;
    text-align: left;
}

.comparison-bullets li {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Semester Credit Workload Tracker */
.semester-credit-total {
    background-color: #374151;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.45rem 0.75rem;
    text-align: center;
    border-radius: 0.4rem;
    margin-top: auto;
    box-sizing: border-box;
    transition: all 0.2s ease;
    user-select: none;
    border: 1px solid transparent;
}

.semester-credit-total.under-limit {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.semester-credit-deficit {
    font-size: 0.7rem;
    color: #6b7280; /* low-contrast gray */
    margin-top: auto;
    padding-top: 0.4rem;
    text-align: left;
    font-weight: 500;
    font-style: italic;
}

/* SURVEYS PAGE STYLING */
.surveys-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.surveys-intro {
    text-align: left;
    margin-bottom: 0.5rem;
}

.surveys-intro h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #111111;
    margin-bottom: 0.5rem;
}

.surveys-intro p {
    font-size: 0.9rem;
    color: #4b5563;
    max-width: 600px;
    line-height: 1.5;
}

.surveys-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .surveys-grid {
        grid-template-columns: 1fr;
    }
}

.survey-card {
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
}

.survey-card:hover {
    border-color: #046a38;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.survey-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.survey-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #111111;
    margin: 0;
    line-height: 1.3;
}

.survey-badge {
    font-size: 0.6rem;
    font-weight: 700;
    color: #046a38;
    border: 1px solid #046a38;
    border-radius: 9999px;
    padding: 0.2rem 0.5rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.survey-card-desc {
    font-size: 0.8rem;
    color: #4b5563;
    line-height: 1.5;
    flex-grow: 1;
}

.survey-card-meta {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border-top: 1px dashed #e5e7eb;
    padding-top: 0.75rem;
    margin-top: auto;
}

.begin-survey-btn {
    background-color: #046a38;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
    width: 100%;
}

.begin-survey-btn:hover {
    background-color: #03522b;
}

/* Modal Form styling */
/* Modal Form styling */
.survey-modal-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: #374151;
    font-family: 'Inter', sans-serif;
    animation: modalReveal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.survey-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.survey-form-group:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.survey-form-group label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.survey-form-group input[type="text"],
.survey-form-group input[type="number"],
.survey-form-group select,
.survey-form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    border: 1px solid #E2E8F0;
    border-radius: 0.375rem;
    box-sizing: border-box;
    font-family: inherit;
    background-color: #ffffff;
    color: #111111;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.survey-form-group input[type="text"]:focus,
.survey-form-group input[type="number"]:focus,
.survey-form-group select:focus,
.survey-form-group textarea:focus {
    outline: none;
    border-color: #0F5132 !important;
    box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.1);
}

.survey-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Slider styling */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slider-val-display {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b5563;
    text-align: center;
    background: #f1f5f9;
    padding: 0.35rem 0.75rem;
    border-radius: 0.25rem;
    width: fit-content;
    margin: 0.25rem auto 0;
}

/* Radios grid */
.survey-radios-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.survey-radio-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    padding: 0.55rem 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 0.375rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.survey-radio-label:hover {
    border-color: #0F5132;
    background-color: #f8fafc;
}

.survey-radio-label input {
    accent-color: #0F5132;
}

.survey-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #E2E8F0;
}

.survey-submit-btn {
    background-color: #0F5132;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border: 1px solid #0F5132;
    border-radius: 0.375rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.survey-submit-btn:hover {
    background-color: #0c3e27;
    border-color: #0c3e27;
}

.survey-cancel-btn {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    padding: 0.6rem 1.2rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.survey-cancel-btn:hover {
    border-color: #0F5132;
    color: #0F5132;
}

/* CLASSROOM CHAT STYLING */
.chat-workspace {
    display: flex;
    height: 580px;
    border: 1.5px solid #333333;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #ffffff;
}

.chat-sidebar {
    width: 260px;
    border-right: 1.5px solid #333333;
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    flex-shrink: 0;
}

.chat-channel-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    overflow-y: auto;
}

.chat-channel-btn {
    border: 1.5px solid transparent;
    padding: 0.75rem 1rem;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 0.375rem;
    background: #ffffff;
    cursor: pointer;
    color: #4b5563;
    transition: all 0.2s ease;
    border-color: #e5e7eb;
}

.chat-channel-btn:hover {
    border-color: #046a38;
    color: #046a38;
}

.chat-channel-btn.active {
    background: #046a38;
    color: #ffffff;
    border-color: #046a38;
}

.chat-feed {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    height: 100%;
}

.chat-feed-header {
    border-bottom: 1.5px solid #e5e7eb;
    padding: 1rem 1.5rem;
    text-align: left;
    background: #ffffff;
}

.chat-feed-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    color: #111111;
}

.chat-messages-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fafafa;
}

.chat-message-bubble {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-width: 70%;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    text-align: left;
    font-size: 0.78rem;
    line-height: 1.4;
}

.chat-message-bubble.incoming {
    background: #ffffff;
    color: #111111;
    border: 1px solid #e5e7eb;
    align-self: flex-start;
    border-bottom-left-radius: 0.15rem;
}

.chat-message-bubble.outgoing {
    background: #edf7ed;
    color: #046a38;
    border: 1px solid #c3e6cb;
    align-self: flex-end;
    border-bottom-right-radius: 0.15rem;
}

.chat-bubble-sender {
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    color: #4b5563;
}

.chat-bubble-sender.outgoing {
    color: #046a38;
}

.chat-input-area {
    border-top: 1.5px solid #e5e7eb;
    padding: 0.85rem 1.25rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: #ffffff;
}

.chat-input-field {
    flex-grow: 1;
    padding: 0.55rem 0.75rem;
    border: 1.5px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-family: inherit;
}

.chat-input-field:focus {
    outline: none;
    border-color: #046a38;
    box-shadow: 0 0 0 3px rgba(4, 106, 56, 0.1);
}

.chat-send-btn {
    background: #046a38;
    color: #ffffff;
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 0.375rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chat-send-btn:hover {
    background: #03522b;
}

/* SCHOLARSHIP MATCHING STYLING */
.scholarships-filter-panel {
    background: #f9fafb;
    border: 1.5px solid #333333;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scholarships-filter-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    color: #111111;
    margin: 0;
}

.scholarships-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.scholarship-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.scholarship-checkbox-label input {
    accent-color: #046a38;
}

.scholarships-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 0.5rem;
}

@media (max-width: 900px) {
    .scholarships-grid {
        grid-template-columns: 1fr;
    }
}

.scholarship-card {
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.scholarship-card:hover {
    border-color: #046a38;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.scholarship-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #111111;
    margin: 0;
    line-height: 1.3;
}

.scholarship-criteria {
    font-size: 0.75rem;
    color: #4b5563;
    line-height: 1.45;
}

.scholarship-deadline {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6b7280;
    border-top: 1px dashed #e5e7eb;
    padding-top: 0.75rem;
    margin-top: auto;
}

.scholarship-deadline.urgent {
    color: #856404;
    background: #fff3cd;
    border-top: 1px solid #ffeeba;
    padding: 0.35rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
    width: calc(100% - 1rem);
    margin-top: auto;
}

.compliance-footer {
    border-top: 1.5px solid #e5e7eb;
    padding-top: 1.25rem;
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.68rem;
    color: #9ca3af; /* low-contrast gray */
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.premium-paywall-card {
    max-width: 550px;
    width: 90%;
    border: 2px solid #046a38 !important; /* sharp emerald border */
    border-radius: 0.75rem;
    padding: 1.75rem;
    background: #ffffff;
    text-align: left;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.data-simulator-link {
    font-size: 0.72rem;
    font-weight: 700;
    color: #4b5563;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    border-bottom: 1.5px dashed #d1d5db;
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.data-simulator-link:hover,
.data-simulator-link.active {
    color: #046a38;
    border-bottom-color: #046a38;
}

/* SAVINGS PLAN OPTIMIZER DASHBOARD STYLES */
.savings-optimizer-card {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.6rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    margin-top: 2rem;
    text-align: left;
}

.optimizer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111111;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #046a38;
    padding-bottom: 0.5rem;
}

.optimizer-timeline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.timeline-switch {
    display: flex;
    border: 1.5px solid #d1d5db;
    border-radius: 0.4rem;
    overflow: hidden;
}

.timeline-switch .toggle-btn {
    background: #f9fafb;
    border: none;
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    outline: none;
}

.timeline-switch .toggle-btn.active {
    background: #046a38;
    color: #ffffff;
}

.timeline-switch .toggle-btn:not(.active):hover {
    background: #f3f4f6;
}

.optimizer-metrics-summary {
    display: flex;
    gap: 2rem;
}

.summary-metric {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.summary-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #111111;
}

.optimized-savings-highlight {
    color: #0F5132 !important; /* Low-contrast corporate emerald */
}

/* Suggested Goals Table/Grid styles */
.optimizer-matrix-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.matrix-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #111111;
    margin: 0;
}

.optimizer-matrix-table {
    display: flex;
    flex-direction: column;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.4rem;
    overflow: hidden;
}

.matrix-header-row, .matrix-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    padding: 0.75rem 1rem;
    align-items: center;
    border-bottom: 1.5px solid #e5e7eb;
    text-align: left;
}

.matrix-header-row {
    background: #f9fafb;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
}

.matrix-row:last-child {
    border-bottom: none;
}

.matrix-col {
    font-size: 0.85rem;
    color: #2D3748;
}

.category-name {
    font-weight: 600;
}

/* Progress bar styles */
.progress-bar-track {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.fill-housing {
    background: #046a38;
}

.fill-food {
    background: #2563eb;
}

.fill-wants {
    background: #ea580c;
}

.fill-tuition {
    background: #8b5cf6;
}

.savings-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #D1E7DD; /* Soft muted green tint */
    color: #0F5132; /* Deep corporate emerald */
    border-radius: 4px;
    vertical-align: middle;
}

.status-badge { 
    display: inline-block; 
    padding: 2px 6px; 
    font-size: 10px; 
    font-weight: bold; 
    border-radius: 3px; 
    text-transform: uppercase; 
    margin-left: 6px; 
    vertical-align: middle; 
}
.status-opinion { background-color: #EDF2F7; color: #4A5568; border: 1px solid #CBD5E0; }
.status-review { background-color: #FEFCBF; color: #744210; border: 1px solid #F6E05E; }
.status-verified { background-color: #C6F6D5; color: #22543D; border: 1px solid #9AE6B4; }

/* Required Materials & Tech Compliance Styling */
.materials-compliance-section {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.materials-compliance-section h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555555;
}

.compliance-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.equipment-requirement-box {
    font-size: 0.8rem;
    line-height: 1.45;
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.equipment-requirement-box strong {
    color: #046a38;
    font-weight: 700;
}

.equipment-restriction-box {
    font-size: 0.8rem;
    line-height: 1.45;
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    background: #fff3cd; /* Soft light-amber background from our style palette */
    border: 1px solid #ffeeba;
    color: #856404;
    font-weight: 500;
}

.equipment-restriction-box strong {
    font-weight: 700;
}

/* Conceptual Sandbox Submission & Verification Styling */
.sandbox-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 0.25rem;
}
@media (max-width: 600px) {
    .sandbox-split-container {
        grid-template-columns: 1fr;
    }
}
.sandbox-input-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.sandbox-input-card h4 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}
.sandbox-textarea {
    width: 100%;
    height: 120px;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    resize: none;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
    box-sizing: border-box;
}
.sandbox-textarea:focus {
    border-color: #046a38;
}
.sandbox-textarea.input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}
.sandbox-placeholder-info {
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 0.15rem;
    line-height: 1.3;
}
.sandbox-warning-box {
    background: #fef2f2;
    border: 1.5px solid #ef4444;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.sandbox-warning-box.hidden {
    display: none;
}
.emerald-badge {
    display: inline-flex;
    align-items: center;
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #059669;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    animation: pulseGlow 2.5s infinite ease-in-out;
}
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.25);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(5, 150, 105, 0);
    }
}
.sandbox-quiz-box {
    border-left: 4px solid #059669 !important;
    background: #fafdfb !important;
}
.sandbox-solve-input:focus {
    border-color: #046a38 !important;
    outline: none !important;
}

/* Startup Dark Theme for integrity-disclosure-modal */
#integrity-disclosure-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95); /* Deep slate-blue/black background with 95% opacity */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000; /* Precedes everything else in depth layer */
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}
#integrity-disclosure-modal.active {
    display: flex;
}
.disclosure-modal-card {
    background: #0f172a; /* Slate 900 background */
    border: 1.5px solid #1e293b; /* Slate 800 border */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3), 0 0 30px rgba(4, 106, 56, 0.15);
    border-radius: 1rem;
    padding: 2.25rem;
    max-width: 580px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: #f1f5f9; /* Slate 100 text */
    font-family: 'Inter', sans-serif;
    animation: modalReveal 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.disclosure-header h3 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #34d399; /* Emerald 400 */
}
.disclosure-header p {
    font-size: 0.8rem;
    color: #94a3b8; /* Slate 400 */
    margin: 0.35rem 0 0;
}
.disclosure-scrollbox {
    background: #1e293b; /* Slate 800 inner box */
    border: 1px solid #334155; /* Slate 700 */
    border-radius: 0.5rem;
    padding: 1.25rem;
    height: 250px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #cbd5e1; /* Slate 300 text */
    text-align: left;
}
.disclosure-scrollbox h4 {
    color: #f8fafc;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.disclosure-scrollbox p {
    margin: 0 0 1rem 0;
}
.disclosure-scrollbox p:last-child {
    margin-bottom: 0;
}
.disclosure-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.disclosure-accept-btn {
    background-color: #046a38;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    width: 100%;
}
.disclosure-accept-btn:hover:not(:disabled) {
    background-color: #059669;
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.4);
}
.disclosure-accept-btn:disabled {
    background-color: #334155; /* Disabled slate */
    color: #64748b;
    cursor: not-allowed;
    opacity: 0.6;
}
.disclosure-scroll-instruction {
    font-size: 0.75rem;
    color: #fb7185; /* Soft rose red/orange */
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: opacity 0.2s;
}
.disclosure-scroll-instruction.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Profile Settings Dropdown and Compliance Container */
.profile-settings-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.25rem;
    width: 320px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    text-align: left;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}
.profile-settings-dropdown.active {
    display: block;
}
.profile-settings-dropdown h3 {
    margin: 0 0 0.5rem 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111111;
}
.compliance-archive-container {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.4;
    box-sizing: border-box;
}
.compliance-archive-container strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #046a38;
}

/* Shadow Mode Adaptive Theme Styles */
body.shadow-mode .profile-settings-dropdown {
    background: #fffbeb;
    border-color: #fcd34d;
}
body.shadow-mode .profile-settings-dropdown h3 {
    color: #78350f;
}
body.shadow-mode .compliance-archive-container {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #78350f;
}
body.shadow-mode .compliance-archive-container strong {
    color: #d97706;
}

/* Curriculum Matrix Modal Styles */
#curriculum-view-overlay {
    transition: opacity 0.3s ease;
}

#curriculum-view-overlay.active {
    display: flex !important;
}

.matrix-modal-card {
    background: #0f172a; /* Slate 900 background */
    border: 1.5px solid #1e293b; /* Slate 800 border */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3), 0 0 30px rgba(52, 211, 153, 0.15);
    border-radius: 1rem;
    padding: 2.25rem;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: #f1f5f9; /* Slate 100 text */
    font-family: 'Inter', sans-serif;
    animation: modalReveal 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.matrix-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.matrix-header-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #34d399; /* Emerald 400 */
}

.matrix-header-subtitle {
    font-size: 0.85rem;
    color: #94a3b8; /* Slate 400 */
    margin: 0.35rem 0 0;
}

.matrix-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.matrix-modal-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.matrix-modal-column-header {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #cbd5e1; /* Slate 300 */
    border-bottom: 1px solid #334155; /* Slate 700 */
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
}

.matrix-modal-item {
    background: #1e293b; /* Slate 800 background */
    border: 1px solid #334155; /* Slate 700 border */
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    min-height: 48px;
    box-sizing: border-box;
}

.matrix-modal-item .course-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.45rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}

.matrix-modal-item .usu-badge {
    background: #0f172a;
    color: #38bdf8; /* Light blue */
    border: 1px solid #0284c7;
}

.matrix-modal-item .uofu-badge {
    background: #991b1b;
    color: #fca5a5;
    border: 1px solid #b91c1c;
}

.matrix-modal-item .course-code {
    font-weight: 700;
    color: #f8fafc;
}

.matrix-modal-item .course-name {
    color: #94a3b8;
}

.matrix-modal-item .arrow-indicator {
    color: #64748b;
    font-weight: bold;
}

.matrix-modal-item .status-badge {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.status-badge.status-full {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399; /* Emerald 400 */
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.status-elective {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24; /* Amber 400 */
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.matrix-close-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.matrix-close-btn:hover {
    color: #f1f5f9;
}

/* 1. FORCE STEP 2 INTO A 4-COLUMN GRID
   Scoped to desktop widths only — unscoped, this !important rule always won
   over the mobile/tablet breakpoints defined on .matrix-grid above (max-width:
   1024px / 640px), which is what caused the 4-year planner grid to render as
   4 overlapping columns on phone-width screens instead of collapsing. */
@media (min-width: 1025px) {
    .path-matrix-grid,
    .matrix-grid,
    [id*="step-2"],
    [id*="STEP-2"] {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 20px !important;
        width: 100% !important;
        align-items: start !important;
    }
}


/* 2. RESET CARD SIZES AND FONTS */
.semester-card, 
.year-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 1.1rem 0.65rem !important; /* Slightly reduced horizontal padding */
    white-space: normal !important;
    word-break: keep-all !important;
}

.semester-card font, 
.semester-card p, 
.semester-card div,
.semester-card span,
.course-info {
    font-size: 14px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-break: keep-all !important;
}

.semester-card h3 {
    font-size: 18px !important;
    margin-bottom: 12px !important;
}

/* Slightly reduce select dropdown horizontal padding */
.target-major-select, 
.academic-standing-select,
.semester-card select {
    padding: 0.55rem 0.35rem !important;
}

/* 3. CLEAN UP SELECT OPTION BUTTON LAYOUTS */
.select-track-btn, 
.change-choice-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-top: 8px !important;
    width: 100% !important;
    margin-left: 0 !important; /* Reset side margin when stacked */
}

/* 4. FIX INSIDE CONTAINER WIDTHS */
.semester-warning-slot,
.cognitive-load-alert,
.course-list,
.course-row,
.elective-row,
.elective-options-panel,
.elective-option {
    width: 100% !important;
    box-sizing: border-box !important;
}

.elective-display-row {
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

/* OChem Skeletal Diagram & Thin Line Styles */
.ochem-diagram line {
    stroke-width: 1.5px !important;
    stroke: #334155 !important;
}

.ochem-diagram text {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 400 !important;
    fill: #334155 !important;
}

.ochem-diagram path.mechanism-arrow {
    stroke: #ef4444 !important;
    stroke-width: 1.5px !important;
}

/* Organic Chemistry Sandbox Chat Panel Targeted Fixes */
#ochem-chat-container {
    height: auto !important;
    min-height: max-content !important;
    max-height: none !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
}

#ochem-chat-container .terminal-chat-log {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.6rem !important;
    margin-bottom: 1rem !important;
}

#ochem-chat-container .chat-msg {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    box-sizing: border-box !important;
}

#ochem-chat-inner {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: max-content !important;
    margin-bottom: 0px !important;
    padding-bottom: 20px !important;
}

/* User Account Profile Dropdown & Notifications Positioning Priorities */
.profile-settings-dropdown, .profile-dropdown, .user-menu-popover {
    z-index: 9999 !important;
    position: absolute !important;
    background-color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

#dashboard-alert-center, .dashboard-alert-center, #notification-container, .alert-stack-wrapper {
    z-index: 100 !important;
}

.notifications-shifted {
    transform: translateY(120px) !important; /* Smoothly clears the vertical space of the logout card */
    transition: transform 0.3s ease-in-out !important;
}

/* ==========================================================================
   CURRICULUM COMPARISON SPLIT-VIEW DASHBOARD
   ========================================================================== */
.compare-split-workspace {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.completed-badge {
    padding: 2px 6px !important;
    font-size: 0.55rem !important;
    line-height: 1 !important;
    border-radius: 4px !important;
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
}

.status-badge {
    padding: 4px 8px !important;
    font-size: 0.55rem !important;
    line-height: 1 !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (max-width: 992px) {
    .compare-split-workspace {
        grid-template-columns: 1fr !important;
    }
}

/* MyTA Content Creator Modal Integration & Expansion */
.upload-modal-card {
    transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.upload-modal-card.expanded-quiz-mode {
    max-width: 1020px !important;
    width: 95% !important;
}

#modal-creator-fields-container {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease-out;
}

#modal-creator-fields-container.active {
    opacity: 1;
    max-height: 2000px;
}

/* FINANCIAL TRACKING FEATURE STYLING */
.semester-cost-display {
    font-size: 0.8rem;
    font-weight: 700;
    color: #046a38;
    background: rgba(4, 106, 56, 0.05);
    border: 1px solid rgba(4, 106, 56, 0.15);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.financial-breakdown-section {
    margin-top: 1.5rem;
}

.financial-breakdown-section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555555;
}

.financial-breakdown-card {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.financial-breakdown-row {
    display: flex;
    justify-content: space-between;
}

.financial-breakdown-info {
    font-size: 0.72rem;
    color: #6b7280;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.financial-breakdown-total-row {
    display: flex;
    justify-content: space-between;
    border-top: 1.5px solid #e5e7eb;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    font-weight: 800;
    color: #046a38;
    font-size: 0.9rem;
}

/* FINANCIAL CALCULATOR PHASE 2 STYLING */
.financial-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.financial-btn {
    flex: 1;
    min-width: 150px;
    border: none;
    padding: 0.65rem 1rem;
    border-radius: 0.4rem;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.financial-btn.autofill-btn {
    background-color: #002e5d;
    color: white;
}

.financial-btn.autofill-btn:hover {
    background-color: #001f3f;
}

.financial-btn.save-btn {
    background-color: #046a38;
    color: white;
}

.financial-btn.save-btn:hover {
    background-color: #03522b;
}

.privacy-notice-box {
    margin: 1.5rem 0;
    background: rgba(4, 106, 56, 0.04);
    border: 1px solid rgba(4, 106, 56, 0.15);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    color: #4b5563;
    line-height: 1.4;
    text-align: center;
    font-family: 'Outfit', sans-serif;
}

.optimized-savings-highlight.negative-savings {
    color: #dc2626 !important;
}
