/* Brain Arena Styles - Responsive Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0891b2;
    --primary-dark: #0e7490;
    --primary-light: #06b6d4;
    --secondary: #0f766e;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --bg-light: #f0fdfa;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0f2fe 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
.header {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.logo h1 {
    color: var(--primary);
    font-size: 28px;
    font-weight: 700;
}

.header-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

/* Container */
.container {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
}

/* Onboarding */
.onboarding {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.onboarding h2 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 32px;
}

.onboarding-subtitle {
    color: var(--text-gray);
    margin-bottom: 40px;
    font-size: 18px;
}

.form-group {
    margin-bottom: 30px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--text-gray);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-dark);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

/* Dashboard */
.dashboard h2 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 28px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 30px;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.card p {
    opacity: 0.9;
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.stat-card h4 {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.badges-section {
    margin-top: 30px;
}

.badges-section h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.badges-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    background: linear-gradient(135deg, var(--warning) 0%, #fbbf24 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Case Simulation */
.case-simulation h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 28px;
}

.case-header {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary);
}

.case-header h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.case-vignette {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 16px;
}

.progress-bar {
    background: var(--border);
    height: 8px;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    height: 100%;
    transition: width 0.3s;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.step {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: var(--border);
    color: var(--text-gray);
    font-weight: 600;
    font-size: 14px;
}

.step.active {
    background: var(--primary);
    color: white;
}

.step.completed {
    background: var(--success);
    color: white;
}

.assessment-section {
    margin-bottom: 30px;
}

.assessment-section h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 20px;
}

.checkbox-group {
    display: grid;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.checkbox-item:hover {
    background: #ccfbf1;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-item label {
    cursor: pointer;
    flex: 1;
    font-size: 15px;
}

.findings-display {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.findings-display h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.findings-display ul {
    list-style: none;
    padding-left: 0;
}

.findings-display li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.findings-display li:last-child {
    border-bottom: none;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Feedback Screen */
.feedback-screen {
    text-align: center;
}

.score-display {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.score-display h2 {
    font-size: 48px;
    margin-bottom: 10px;
}

.score-display p {
    font-size: 18px;
    opacity: 0.9;
}

.feedback-section {
    text-align: left;
    margin-bottom: 30px;
}

.feedback-section h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 22px;
}

.feedback-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.feedback-card h4 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 18px;
}

.feedback-card ul {
    list-style-position: inside;
    color: var(--text-dark);
}

.feedback-card li {
    padding: 5px 0;
}

.viva-ai-section {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.viva-ai-section h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.viva-ai-section p {
    font-size: 16px;
    line-height: 1.8;
}

.ai-comment {
    font-size: 12px;
    font-style: italic;
    opacity: 0.8;
    margin-top: 10px;
}

/* Editable Mode */
.edit-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--warning);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.edit-mode-toggle:hover {
    background: #b45309;
}

.editable-badge {
    display: inline-block;
    background: var(--warning);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 8px;
    text-transform: uppercase;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app {
        padding: 10px;
    }

    .container {
        padding: 20px;
    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .logo h1 {
        font-size: 24px;
    }

    .header-stats {
        justify-content: center;
    }

    .onboarding h2 {
        font-size: 24px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
    }

    .step-indicator {
        flex-direction: column;
    }

    .step {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .stat-value {
        font-size: 18px;
    }

    .score-display h2 {
        font-size: 36px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.5s ease-out;
}

/* Alert/Info boxes */
.info-box {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-box p {
    color: #1e40af;
    font-size: 14px;
}

.success-box {
    background: #d1fae5;
    border-left: 4px solid var(--success);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.success-box p {
    color: #065f46;
    font-size: 14px;
}
