/* GPGenie Main Styles */

:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-color: #1f2937;
    --light-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.app-header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
}

.app-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.header-logo {
    height: 300px;
    width: auto;
    object-fit: contain;
}

.app-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.app-subtitle {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 400;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.action-button {
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.action-button:hover {
    background-color: var(--light-gray);
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.hero-title i {
    color: var(--primary-color);
}

.hero-lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

.beta-notice {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.beta-notice i {
    color: #f59e0b;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.beta-notice p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #92400e;
}

.beta-notice strong {
    color: #78350f;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-lead {
        font-size: 1rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
}

/* Tab Navigation */
.view-tabs {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.view-tabs .container {
    display: flex;
    gap: 0;
}

.tab-button {
    flex: 1;
    padding: 1rem;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.2s;
}

.tab-button:hover:not(.disabled) {
    background-color: var(--light-gray);
}

.tab-button.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

/* Form Styles */
.essay-form {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.input-container h2 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.instruction {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.question-container,
.essay-container {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

input[type="text"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Button Styles */
.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.submit-button {
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: var(--secondary-color);
}

.submit-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* Primary Button Styles */
.primary-button {
    background: var(--primary-color);
    color: white;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 200px;
}

.primary-button:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.primary-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.primary-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Loading States */
.loading-message {
    text-align: center;
    padding: 3rem;
}

.loading-message h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.spinner {
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Box Styles */
.error-box {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1rem 0;
    color: #991b1b;
}

.error-box i {
    color: var(--error-color);
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.error-box p {
    margin: 0.5rem 0;
}

.error-box p:first-child {
    margin-top: 0;
}

.error-box p:last-child {
    margin-bottom: 0;
}

.error-box strong {
    color: #7f1d1d;
}

/* Warning Messages */
.warning-banner {
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.warning-banner i {
    color: var(--warning-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.warning-banner p {
    margin: 0;
    color: #92400e;
}

/* Report Section Styles */
.report-section {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
}

.section-content {
    color: #4b5563;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-logo {
        height: 90px;
    }
    
    .app-title {
        font-size: 1.5rem;
    }
    
    .app-subtitle {
        font-size: 0.875rem;
    }
    
    .tab-button {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
    }
    
    .essay-form {
        padding: 1.5rem;
    }
}

/* Model Selection Styles */
.integrated-model-container {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.integrated-model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.token-count-display {
    font-weight: 500;
    color: var(--primary-color);
}

.model-token-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .model-token-layout {
        grid-template-columns: 1fr;
    }
}

.model-selection-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.model-selector-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.model-tab {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.model-tab:hover {
    border-color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.model-tab.selected {
    border-color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.1);
}

.model-tab-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.model-tab-name {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.model-id {
    font-size: 0.8rem;
    color: #6b7280;
}

.model-tag {
    font-size: 0.7rem;
    background-color: var(--primary-color);
    color: white;
    padding: 2px 5px;
    border-radius: 10px;
    display: inline-block;
    align-self: flex-start;
    margin-top: 2px;
}

.provider-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-left: 8px;
}


.model-pricing {
    display: none;
    margin-top: 4px;
    padding: 4px 8px;
    background-color: rgba(37, 99, 235, 0.05);
    border-radius: 4px;
    font-size: 0.85rem;
}

.model-pricing.selected-model-pricing {
    display: block;
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.cost-estimate-container {
    text-align: center;
    margin-top: 20px;
    padding: 16px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cost-label {
    font-weight: 500;
}

.cost-value {
    color: var(--primary-color);
    font-weight: bold;
}

/* Model Dropdown Styles */
.model-dropdown {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

.model-dropdown:hover {
    border-color: var(--primary-color);
}

.model-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Token Estimator Panel */
.token-estimator-panel {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.token-breakdown {
    margin-bottom: 16px;
}

.token-type-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.token-type-label {
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.token-type-label.system-label {
    color: #6b7280;
}

.token-type-label.input-label {
    color: #059669;
}

.token-type-label.output-label {
    color: #dc2626;
}

.token-type-value {
    font-weight: 600;
    font-size: 14px;
}

/* Submit Container */
.submit-container {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.cost-breakdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

.cost-detail {
    display: flex;
    gap: 4px;
}
}

.token-visualization {
    margin-top: 16px;
}

.token-bar-container {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    margin-bottom: 8px;
}

.token-bar-segment {
    height: 100%;
    transition: width 0.3s ease;
}

.token-bar-segment.system-segment {
    background-color: #6b7280;
}

.token-bar-segment.input-segment {
    background-color: var(--primary-color);
}

.token-bar-segment.output-segment {
    background-color: var(--success-color);
}

.capacity-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Hidden Elements by Default */
.loading-container,
#essayLoading,
.error-dashboard-modal,
.error-dashboard-toggle {
    display: none;
}

/* Error Dashboard Styles */
.error-dashboard-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 16px;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.error-dashboard-toggle:hover {
    background: #dc2626;
}

.error-count-badge {
    background: white;
    color: var(--error-color);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
}

.error-dashboard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.error-dashboard-content {
    background: white;
    border-radius: 8px;
    padding: 24px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.error-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.error-dashboard-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

.error-dashboard-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.export-logs-btn,
.clear-logs-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

.export-logs-btn:hover,
.clear-logs-btn:hover {
    background: var(--light-gray);
}

/* Loading Styles */
.loading-container {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-stages {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stage {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    transition: all 0.3s ease;
}

.stage-indicator {
    font-size: 20px;
    transition: all 0.3s ease;
}

.stage.active {
    color: var(--primary-color);
    font-weight: 600;
}

.stage.active .stage-indicator {
    color: var(--primary-color);
    transform: scale(1.2);
}

.stage.complete {
    color: var(--success-color);
}

.stage.complete .stage-indicator {
    color: var(--success-color);
}

/* Loading info styles */
.loading-info {
    text-align: center;
}

.loading-info p {
    color: #4b5563;
    font-size: 16px;
    margin: 10px 0;
}

.token-usage-live {
    margin: 20px 0;
    padding: 15px;
    background: #e5e7eb;
    border-radius: 8px;
}

.token-progress-bar-live {
    width: 100%;
    height: 20px;
    background: #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

#liveTokenBar {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.estimated-time {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
}

/* Show elements when needed */
.loading-container.active,
#essayLoading.active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.error-dashboard-modal.active {
    display: flex !important;
}

.error-dashboard-toggle.active {
    display: block !important;
}

/* Band 5 Aspirational Styles */
.band-5-aspirational {
    position: relative;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #0ea5e9;
    padding-left: 1rem;
    margin: 0.5rem 0;
}

.band-5-highlight {
    background-color: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 0.75rem 0;
    position: relative;
}

.band-5-highlight h5 {
    color: #92400e;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.band-5-highlight::before {
    content: "⭐";
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.25rem;
}

.band-5-benchmark {
    border-color: #f59e0b;
    background-color: #fffbeb;
}

.band-5-benchmark h5 {
    color: #b45309;
}

.band-5-benchmarked {
    position: relative;
}

.band-5-benchmarked::after {
    content: "Band 5 Benchmark";
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    background-color: #f59e0b;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.band-expectation-item {
    margin: 0.75rem 0;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
}

.band-expectation-item h5 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.band-expectation-item.band-5-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
}

.student-band-alignment {
    background-color: #ecfdf5;
    border: 1px solid #86efac;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.student-band-alignment h4 {
    color: #166534;
    margin-bottom: 0.5rem;
}

.executive-summary-box {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1rem 0;
}

.summary-intro {
    font-style: italic;
    color: #6b7280;
    margin-bottom: 1rem;
}

.summary-section {
    margin: 1rem 0;
    padding: 0.75rem;
    background-color: white;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
}

.summary-section h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.summary-section h5 i {
    font-size: 1.125rem;
}

.summary-section.band-5-benchmark {
    background-color: #fffbeb;
    border-color: #fbbf24;
}

/* Enhanced Advice Item Styling */
.advice-item {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.criterion-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.observation-box,
.advice-box,
.example-box {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background-color: white;
    border-radius: 0.375rem;
}

.example-box.band-5-aspirational {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #0ea5e9;
}

/* Inline Comment Band 5 Styles */
.band-5-indicator {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #92400e;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.band-5-indicator i {
    color: #f59e0b;
}

.category-description {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    margin: 0.25rem 0 0.5rem;
}

.category-weakness .category-description {
    color: #991b1b;
    font-weight: 500;
}

.category-suggestion .category-description {
    color: #065f46;
}

.category-strength .category-description {
    color: #1e40af;
}

/* Band Expectations Matrix Styles */
.band-expectations-matrix {
    margin: 2rem 0;
}

.matrix-intro {
    color: #6b7280;
    font-style: italic;
    margin-bottom: 1rem;
}

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

.band-row {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: white;
    transition: all 0.2s;
}

.band-row:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.band-row.band-5-highlight {
    border: 2px solid #f59e0b;
    background: linear-gradient(to bottom, #fffbeb, white);
}

.band-header {
    background-color: #f9fafb;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.band-row.band-5-highlight .band-header {
    background-color: #fef3c7;
}

.band-header h5 {
    margin: 0;
    color: #111827;
    font-weight: 600;
    font-size: 1.125rem;
}

.band-characteristics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.content-column,
.language-column {
    padding: 1.25rem;
}

.content-column {
    border-right: 1px solid #e5e7eb;
}

.content-column h6,
.language-column h6 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9375rem;
}

.content-column h6 i,
.language-column h6 i {
    font-size: 1.125rem;
}

.content-column p,
.language-column p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
}

/* Student Alignment Section */
.student-alignment-section {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.alignment-box {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.content-alignment {
    border-left: 4px solid #3b82f6;
}

.language-alignment {
    border-left: 4px solid #10b981;
}

.alignment-box h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    color: #111827;
    font-weight: 600;
}

.alignment-box p {
    margin: 0;
    line-height: 1.6;
}

/* Responsive Design for Band Matrix */
@media (max-width: 768px) {
    .band-characteristics {
        grid-template-columns: 1fr;
    }
    
    .content-column {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
}

/* Scaffolded Progression Styles (v2.12) */
.scaffolded-progression-item {
    background: linear-gradient(to right, #f7fafc, #ffffff);
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.scaffolded-progression-item .criterion-title {
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #4299e1;
    padding-bottom: 0.5rem;
}

.progression-step {
    position: relative;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.progression-step::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px;
}

.progression-step.current-band {
    background-color: #fef5e7;
    border: 1px solid #f6d55c;
}

.progression-step.current-band::before {
    background-color: #ed8936;
}

.progression-step.next-band {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
}

.progression-step.next-band::before {
    background-color: #4299e1;
}

.progression-step.band-5-target {
    background-color: #fff9e6;
    border: 2px solid #f59e0b;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.1);
}

.progression-step.band-5-target::before {
    background: linear-gradient(to bottom, #f59e0b, #d97706);
    width: 6px;
}

.step-header {
    font-weight: 600;
    font-size: 1.05rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.step-header i {
    font-size: 1.1rem;
}

.current-band .step-header i {
    color: #ed8936;
}

.next-band .step-header i {
    color: #4299e1;
}

.band-5-target .step-header i {
    color: #f59e0b;
}

.step-content {
    color: #4a5568;
    line-height: 1.7;
}

.band-5-example-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fff9e6 100%);
    border: 2px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.band-5-example-box::before {
    content: '\2605';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 80px;
    color: rgba(245, 158, 11, 0.1);
    transform: rotate(15deg);
}

.band-5-example-box .example-header {
    font-weight: 700;
    color: #d97706;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.band-5-example-box .example-content {
    color: #4a5568;
    line-height: 1.6;
    font-style: italic;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #f59e0b;
}

/* Mark Justification Box Styles */
.mark-justification-box {
    background: linear-gradient(to right, #f0f4f8, #ffffff);
    border: 1px solid #cbd5e1;
    border-left: 4px solid #6366f1;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mark-justification-box .justification-header {
    font-weight: 600;
    color: #4c1d95;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.mark-justification-box .justification-header i {
    color: #6366f1;
    font-size: 1.1rem;
}

.mark-justification-box .justification-content {
    color: #334155;
    line-height: 1.7;
    padding-left: 1.5rem;
}

.mark-justification-box .justification-content strong {
    color: #1e293b;
    font-weight: 600;
}

/* Student Examples Analysis Styles */
.student-examples-analysis {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 2rem 0;
}

.student-examples-analysis > h4 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.student-examples-analysis > h4 i {
    color: #4299e1;
}

.analysis-intro {
    color: #4a5568;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.examples-critique-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.example-critique-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.example-critique-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.example-critique-card .example-header {
    background-color: #2d3748;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.example-number {
    background-color: #4299e1;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.example-citation {
    flex: 1;
    font-style: italic;
    opacity: 0.9;
    font-size: 0.95rem;
}

.band-analysis-grid {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.band-analysis {
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.band-analysis.current-band {
    background-color: #fef5e7;
    border-left-color: #ed8936;
}

.band-analysis.band-4-path {
    background-color: #e6f7ff;
    border-left-color: #4299e1;
}

.band-analysis.band-5-path {
    background-color: #fff9e6;
    border-left-color: #f59e0b;
}

.band-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.band-content {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

.example-enhancement-suggestion {
    background: linear-gradient(to right, #f0f9ff, #e0f2fe);
    padding: 1.5rem;
    border-top: 2px solid #4299e1;
}

.suggestion-header {
    font-weight: 600;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.suggestion-content {
    color: #475569;
    line-height: 1.6;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 3px solid #4299e1;
}

/* Enhanced Argument Assessment Box */
.argument-assessment-box {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
}

.argument-assessment-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: currentColor;
}

.argument-assessment-box.satisfactory {
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.argument-assessment-box.satisfactory::before {
    background-color: #22c55e;
}

.argument-assessment-box.needs-improvement {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.argument-assessment-box.needs-improvement::before {
    background-color: #ef4444;
}

.argument-assessment-box h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.assessment-content {
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Gravity of Issues Styling */
.critical-area,
.band-5-benchmark {
    position: relative;
    padding-left: 1.5rem;
}

.critical-area::before {
    content: '\26a0\fe0f';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

.band-5-benchmark {
    background-color: rgba(245, 158, 11, 0.05);
    border-left: 4px solid #f59e0b;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
}

/* Enhanced Critical Areas Styling */
.improvement-item {
    position: relative;
}

.improvement-item::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to bottom, #ef4444, #dc2626);
    border-radius: 3px;
}

.improvement-item.high-gravity {
    background-color: #fef2f2;
    border: 2px solid #fca5a5;
}

.improvement-item.high-gravity h5 {
    color: #991b1b;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scaffolded-progression-item {
        padding: 1rem;
    }
    
    .progression-step {
        padding: 1rem;
    }
    
    .band-5-example-box {
        padding: 1rem;
    }
    
    .student-examples-analysis {
        padding: 1rem;
    }
    
    .example-critique-card .example-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .app-header,
    .view-tabs,
    .action-button,
    .submit-button,
    .loading-container,
    .error-dashboard-modal,
    .error-dashboard-toggle {
        display: none !important;
    }
    
    main {
        padding: 0;
    }
    
    .report-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    .scaffolded-progression-item,
    .example-critique-card {
        page-break-inside: avoid;
    }
}

/* Model fallback notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.model-fallback-notification {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========== FAQ Section Styles ========== */
.faq-section {
    background-color: #f8fafb;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e1e8ed;
}

.faq-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a2b3a;
    margin-bottom: 2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 1rem;
}

.faq-category {
    margin-bottom: 0;
}

.faq-category-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c5282;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    position: relative;
}

.faq-category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 100%;
    background-color: #2c5282;
    border-radius: 2px;
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-question {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2d3748;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.4;
}

.faq-question span {
    flex: 1;
    padding-right: 0.75rem;
}

.faq-question:hover {
    color: #2c5282;
}

.faq-question[aria-expanded="true"] {
    color: #2c5282;
    background-color: #f7fafc;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #718096;
    width: 20px;
    height: 20px;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
    color: #2c5282;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.25rem;
    font-size: 0.8125rem;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 1000px;
    padding: 0 1.25rem 1rem;
}

.faq-answer p {
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

.faq-answer li {
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 0.375rem;
}

.faq-answer li:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: #2d3748;
    font-weight: 600;
}

/* FAQ Responsive Design */
@media (max-width: 768px) {
    .faq-section {
        padding: 2rem 0;
    }
    
    .faq-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faq-category {
        margin-bottom: 1.5rem;
    }
    
    .faq-category:last-child {
        margin-bottom: 0;
    }
    
    .faq-category-title {
        font-size: 1rem;
    }
    
    .faq-question {
        font-size: 0.8125rem;
        padding: 0.75rem 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem;
        font-size: 0.75rem;
    }
    
    .faq-question[aria-expanded="true"] + .faq-answer {
        padding: 0 1rem 0.75rem;
    }
}

/* Donation/Support Section */
.support-section {
    text-align: center;
    padding: 2rem 0;
    background-color: #10b981;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-top: 1px solid #059669;
    margin-top: 2rem;
}

.support-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.support-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.2), 0 4px 8px -2px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 2.5rem 2rem;
    backdrop-filter: blur(10px);
}

.support-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 1rem;
}

.support-content p {
    font-size: 1rem;
    color: #047857;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 500;
}

.coffee-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Stripe Buy Button Container */
.donation-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

/* Override default Stripe button styles if needed */
stripe-buy-button {
    display: inline-block;
}

/* Responsive Design for Support Section */
@media (max-width: 768px) {
    .support-section {
        padding: 1.5rem 0;
    }
    
    .support-content {
        padding: 2rem 1.5rem;
    }
    
    .support-content h3 {
        font-size: 1.25rem;
    }
    
    .support-content p {
        font-size: 0.875rem;
    }
    
    .coffee-emoji {
        font-size: 2.5rem;
    }
}

/* Hide token calculator and cost estimator elements */
/* Keep the container and model selector visible, only hide token/cost elements */
.integrated-model-header .token-count-display,
.token-estimator-panel,
.cost-estimate-container,
.cost-breakdown,
.model-pricing {
    display: none !important;
}

/* Also hide the "AI Model & Token Usage" label since we're hiding token usage */
.integrated-model-header > label {
    display: none !important;
}

/* Keep model layout visible but hide only token estimator within it */
.model-token-layout {
    display: block !important;
}