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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Screen Management */
.screen {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.screen.active {
    display: block;
}

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

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

/* Landing Screen */
.app-header.hidden-for-landing,
.app-footer.hidden-for-landing {
    display: none !important;
}

.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    color: white;
    gap: 1.5rem;
}

/* Adjust main content padding when header is hidden */
.main-content.no-header {
    padding: 0;
}

.hero-section {
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    line-height: 1.4;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: nowrap;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.primary-auth-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    min-width: 200px;
    flex: 1 1 0;
    max-width: 280px;
    white-space: nowrap;
}

.primary-auth-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 1);
}

.guest-auth-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    color: #4a5568;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    min-width: 200px;
    flex: 1 1 0;
    max-width: 280px;
    white-space: nowrap;
}

.guest-auth-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.8);
}

.auth-icon {
    font-size: 2rem;
}

.auth-text {
    text-align: left;
}

.auth-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.auth-text small {
    color: #718096;
    font-size: 0.9rem;
}

.demo-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.demo-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.demo-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.demo-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.demo-icon {
    font-size: 1.2rem;
}

.demo-text {
    text-align: left;
    flex: 1;
}

.demo-text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.demo-text small {
    color: #718096;
    font-size: 0.75rem;
}

.auth-options {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2rem;
}

.auth-options p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.link-btn {
    background: none;
    border: none;
    color: #4299e1;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link-btn:hover {
    color: #63b3ed;
}

/* Authentication Popup Modal Styles */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-popup {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.auth-modal-overlay.active .auth-modal-popup {
    transform: scale(1) translateY(0);
}

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

.auth-modal-header h2 {
    color: #2d3748;
    margin: 0;
    font-size: 1.25rem;
}

.auth-modal-header .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #718096;
    padding: 0;
    width: auto;
    height: auto;
    border-radius: 0;
}

.auth-modal-header .close-btn:hover {
    color: #4a5568;
    background: none;
}

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

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

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

.form-group label {
    font-weight: 500;
    color: #4a5568;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-group small {
    color: #718096;
    font-size: 0.875rem;
}

.form-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    margin-top: 1rem;
}

.form-links a {
    color: #4299e1;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
}

.form-links a:hover {
    color: #3182ce;
    text-decoration: underline;
}

.form-note {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.form-note small {
    color: #4a5568;
    line-height: 1.4;
}

.oauth-section {
    margin-top: 2rem;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #718096;
    font-size: 0.9rem;
}

.oauth-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.oauth-btn:hover:not(.disabled) {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.oauth-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.oauth-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.oauth-text {
    flex: 1;
    text-align: left;
}

.oauth-text small {
    display: block;
    color: #718096;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.user-name {
    font-weight: 600;
    color: #2d3748;
}

.user-role {
    background: #4299e1;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.logout-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: #c53030;
}

.login-btn {
    background: #38a169;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-btn:hover {
    background: #2f855a;
}

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

/* Features Overview */
.features-overview {
    max-width: 1000px;
    width: 100%;
}

.features-overview h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2d3748;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.6);
    color: #2d3748;
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #2d3748;
    font-weight: 600;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.4;
    font-size: 0.9rem;
}

/* Feature Header and Help Button */
.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.feature-help-btn {
    background: rgba(66, 153, 225, 0.1);
    color: #4299e1;
    border: 1px solid rgba(66, 153, 225, 0.3);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.feature-help-btn:hover {
    background: rgba(66, 153, 225, 0.2);
    border-color: rgba(66, 153, 225, 0.5);
    transform: scale(1.1);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.modal-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #718096;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #4a5568;
    background: #f7fafc;
}

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

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Help Content Styles */
.help-section {
    margin-bottom: 2rem;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h4 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-section p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.help-section ol,
.help-section ul {
    color: #4a5568;
    line-height: 1.6;
    padding-left: 1.5rem;
}

.help-section li {
    margin-bottom: 0.5rem;
}

.help-section li strong {
    color: #2d3748;
    font-weight: 600;
}

.help-section ul ul {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

/* Custom Login Screen */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    max-width: 500px;
    margin: 0 auto;
    margin-top: 10vh;
}

.login-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: #2d3748;
    flex: 1;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Welcome Screen (after login) */
.welcome-container {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.welcome-header {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-header h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Mode Selection */
.mode-selection h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2d3748;
    font-size: 1.5rem;
}

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

.mode-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.mode-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(66, 153, 225, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mode-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mode-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.mode-card p {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.mode-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.feature-tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Learning Screen */
.learning-container {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.back-btn, .help-btn {
    background: #718096;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.back-btn:hover, .help-btn:hover {
    background: #4a5568;
}

.mode-info h2 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.mode-info p {
    color: #718096;
}

/* Session Setup */
.session-setup {
    margin-bottom: 2rem;
}

.setup-form {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

/* Learning Interface */
.learning-interface {
    display: grid;
    gap: 2rem;
}

.ai-response-area,
.user-input-area,
.feedback-area {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.response-header,
.input-header,
.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.response-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #718096;
}

.ai-response-content {
    line-height: 1.7;
    color: #2d3748;
}

.input-tools {
    display: flex;
    gap: 0.5rem;
}

.tool-btn {
    background: #edf2f7;
    color: #4a5568;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s ease;
}

.tool-btn:hover {
    background: #e2e8f0;
}

.input-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Buttons */
.primary-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.primary-btn:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

.secondary-btn {
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

/* Dashboard and Help Screens */
.dashboard-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    max-height: none;
    overflow: visible;
}

.help-container {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-height: 85vh;
    overflow-y: auto;
}

.dashboard-header {
    display: none;
}

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

.help-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.close-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: #c53030;
}

/* Footer */
.app-footer {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #718096;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-center {
    display: flex;
    gap: 1rem;
}

.footer-right {
    display: flex;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: #4299e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #3182ce;
}

.footer-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.footer-btn:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

.footer-btn.settings-btn {
    padding: 0.5rem;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.status-indicator {
    font-weight: 500;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Flash Screen Styles */
.flash-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.flash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-content {
    text-align: center;
    color: white;
    z-index: 3;
    animation: flashFadeIn 1s ease-in-out;
}

.flash-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flash-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
}

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

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

/* Responsive flash screen */
@media (max-width: 768px) {
    .flash-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .loading-spinner {
        width: 50px;
        height: 50px;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.toast-info {
    border-left: 4px solid #4299e1;
}

.toast-warning {
    border-left: 4px solid #ed8936;
}

.toast-error {
    border-left: 4px solid #e53e3e;
}

.toast-success {
    border-left: 4px solid #38a169;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #718096;
    margin-left: 1rem;
}

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

/* Loading States */
.loading {
    text-align: center;
    padding: 2rem;
    color: #718096;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 0.5rem;
    }

    .landing-container {
        padding: 0.5rem;
        min-height: calc(100vh - 120px);
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .demo-buttons {
        gap: 0.5rem;
        margin-bottom: 1rem;
        flex-direction: column;
    }

    .demo-btn {
        padding: 0.8rem 1rem;
        min-width: auto;
        max-width: none;
    }

    .demo-icon {
        font-size: 1.5rem;
    }

    .demo-text strong {
        font-size: 1rem;
    }

    .demo-text small {
        font-size: 0.8rem;
    }

    .features-overview h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .welcome-container,
    .learning-container,
    .dashboard-container,
    .help-container {
        padding: 1rem;
        margin: 0;
    }

    .welcome-header {
        margin-bottom: 1.5rem;
    }

    .mode-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mode-card {
        padding: 1.5rem;
    }

    .mode-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .input-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0 1rem;
    }

    .footer-center {
        order: -1;
    }

    .toast {
        min-width: auto;
        width: calc(100vw - 2rem);
        margin: 0 1rem;
    }

    .auth-modal-content {
        width: 95%;
        margin: 1rem;
    }

    .auth-modal-header,
    .auth-modal-body {
        padding: 1rem;
    }

    .login-container {
        padding: 1.5rem;
        margin-top: 5vh;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .welcome-header h2 {
        font-size: 1.8rem;
    }

    .welcome-subtitle {
        font-size: 0.9rem;
    }

    .mode-card {
        padding: 1rem;
    }

    .mode-icon {
        font-size: 2rem;
    }

    .mode-card h4 {
        font-size: 1.1rem;
    }

    .mode-card p {
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .primary-btn, .secondary-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .input-group input,
    .input-group select,
    .input-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .setup-form {
        padding: 1rem;
    }

    .ai-response-area,
    .user-input-area,
    .feedback-area {
        padding: 1rem;
    }

    .footer-content {
        gap: 0.5rem;
    }

    .footer-center {
        gap: 0.5rem;
    }

    .footer-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .demo-btn {
        padding: 0.6rem 0.8rem;
        gap: 0.5rem;
    }

    .demo-text strong {
        font-size: 0.9rem;
    }

    .demo-text small {
        font-size: 0.7rem;
    }

    .mode-card {
        padding: 0.8rem;
    }

    .feature-card {
        padding: 0.8rem;
    }

    .auth-modal-content {
        width: 98%;
        margin: 0.5rem;
    }

    .auth-modal-header,
    .auth-modal-body {
        padding: 0.8rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }

.hidden { display: none; }
.visible { display: block; }

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

/* User Profile Modal Styles */
.profile-modal {
    max-width: 700px;
    max-height: 90vh;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-section {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.profile-section h4 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.interests-container {
    margin-top: 0.5rem;
}

.interest-tags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.interest-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.interest-tag:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.interest-tag input[type="checkbox"] {
    margin: 0;
    width: auto;
    height: auto;
}

.interest-tag input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #4299e1;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.checkbox-label:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: auto;
    height: auto;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #4299e1;
    border-color: #4299e1;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.profile-section .input-group {
    margin-bottom: 0;
}

.profile-section .input-group label {
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.profile-section .input-group input,
.profile-section .input-group select,
.profile-section .input-group textarea {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.profile-section .input-group input:focus,
.profile-section .input-group select:focus,
.profile-section .input-group textarea:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    outline: none;
}

.profile-section .input-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Profile Modal Responsive Design */
@media (max-width: 768px) {
    .profile-modal {
        max-width: 95%;
        margin: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .profile-section {
        padding: 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .interest-tags {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .interest-tag,
    .checkbox-label {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-modal {
        max-width: 98%;
        margin: 0.5rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .profile-section h4 {
        font-size: 1rem;
    }

    .interest-tag,
    .checkbox-label {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    .checkmark {
        width: 16px;
        height: 16px;
    }

    .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
        font-size: 0.7rem;
    }
}

/* Scenario Configuration Styles */
.scenario-configuration {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-section {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.config-section h5 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.config-section .form-group {
    margin-bottom: 1rem;
}

.config-section .form-group:last-child {
    margin-bottom: 0;
}

.config-section .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
}

.config-section .form-group input,
.config-section .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.config-section .form-group input:focus,
.config-section .form-group textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

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

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Scenario Display Styles */
.scenario-display {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.scenario-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.scenario-header h4 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.scenario-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.concept-tag,
.domain-tag {
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.concept-tag {
    background: #e6fffa;
    color: #234e52;
    border: 1px solid #81e6d9;
}

.domain-tag {
    background: #ebf8ff;
    color: #2a4365;
    border: 1px solid #90cdf4;
}

.scenario-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.scenario-section {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.scenario-section h5 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scenario-text,
.rationale-text {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

.seed-questions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.seed-question {
    background: white;
    padding: 1rem;
    border-radius: 0.375rem;
    border-left: 4px solid #4299e1;
    color: #2d3748;
    font-size: 0.9rem;
    line-height: 1.5;
}

.expectations-list,
.misconceptions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.expectation-item {
    background: white;
    padding: 1rem;
    border-radius: 0.375rem;
    border-left: 4px solid #38a169;
    color: #2d3748;
    font-size: 0.9rem;
    line-height: 1.5;
}

.misconception-item {
    background: white;
    padding: 1rem;
    border-radius: 0.375rem;
    border-left: 4px solid #ed8936;
    color: #2d3748;
    font-size: 0.9rem;
    line-height: 1.5;
}

.scenario-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Responsive Design for Scenario Components */
@media (max-width: 768px) {
    .scenario-configuration {
        gap: 1.5rem;
    }

    .config-section {
        padding: 1rem;
    }

    .scenario-display {
        padding: 1rem;
    }

    .scenario-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .scenario-meta {
        gap: 0.5rem;
    }

    .scenario-content {
        gap: 1.5rem;
    }

    .scenario-section {
        padding: 1rem;
    }

    .scenario-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .scenario-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .config-section {
        padding: 0.75rem;
    }

    .scenario-display {
        padding: 0.75rem;
    }

    .scenario-header h4 {
        font-size: 1.25rem;
    }

    .scenario-section {
        padding: 0.75rem;
    }

    .scenario-section h5 {
        font-size: 1rem;
    }

    .seed-question,
    .expectation-item,
    .misconception-item {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

/* Scenario Generation Confirmation Styles */
.scenario-generated-confirmation {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.confirmation-header h4 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.confirmation-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.confirmation-content > p {
    text-align: center;
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
}

.scenario-preview {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.scenario-preview h5 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-text {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
    font-style: italic;
}

.interaction-options {
    margin-top: 1rem;
}

.interaction-options h5 {
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.option-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-card:hover {
    transform: translateY(-2px);
    border-color: #4299e1;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.option-card.interactive-option:hover {
    border-color: #38a169;
    box-shadow: 0 8px 20px rgba(56, 161, 105, 0.15);
}

.option-card.traditional-option:hover {
    border-color: #4299e1;
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.15);
}

.option-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-content h6 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.option-content p {
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.option-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.option-arrow {
    font-size: 1.5rem;
    color: #4299e1;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.option-card:hover .option-arrow {
    transform: translateX(5px);
}

/* Traditional View Styles */
.traditional-view {
    animation: fadeIn 0.5s ease-in-out;
}

.traditional-view .scenario-actions {
    flex-wrap: wrap;
}

.traditional-view .scenario-actions button {
    min-width: 140px;
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
    .scenario-generated-confirmation {
        padding: 1rem;
    }

    .confirmation-header {
        margin-bottom: 1.5rem;
    }

    .confirmation-header h4 {
        font-size: 1.25rem;
    }

    .confirmation-content {
        gap: 1.5rem;
    }

    .confirmation-content > p {
        font-size: 1rem;
    }

    .scenario-preview {
        padding: 1rem;
    }

    .interaction-options h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .option-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .option-icon {
        font-size: 2rem;
    }

    .option-content h6 {
        font-size: 1rem;
    }

    .option-content p {
        font-size: 0.85rem;
    }

    .option-features {
        justify-content: center;
    }

    .option-arrow {
        display: none;
    }

    .traditional-view .scenario-actions {
        flex-direction: column;
    }

    .traditional-view .scenario-actions button {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .scenario-generated-confirmation {
        padding: 0.75rem;
    }

    .confirmation-header h4 {
        font-size: 1.1rem;
    }

    .confirmation-content > p {
        font-size: 0.9rem;
    }

    .scenario-preview {
        padding: 0.75rem;
    }

    .scenario-preview h5 {
        font-size: 1rem;
    }

    .preview-text {
        font-size: 0.85rem;
    }

    .interaction-options h5 {
        font-size: 1rem;
    }

    .option-card {
        padding: 0.75rem;
    }

    .option-icon {
        font-size: 1.8rem;
    }

    .option-content h6 {
        font-size: 0.95rem;
    }

    .option-content p {
        font-size: 0.8rem;
    }

    .feature-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Print Styles */
@media print {
    .app-header,
    .app-footer,
    .loading-overlay,
    .toast-container,
    .modal-overlay {
        display: none;
    }
    
    .main-content {
        padding: 0;
    }
    
    .screen {
        box-shadow: none;
        background: white;
    }
}
