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

:root {
    --primary-color: #483c4c;
    --secondary-color: #f5ddcd;
    --text-primary: #2d2d2d;
    --text-secondary: #6b6b6b;
    --bg-light: #ffffff;
    --border-color: #e5e5e5;
    --error-color: #d93025;
    --success-color: #34a853;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.intro-page {
    background: linear-gradient(135deg, #f5ddcd 0%, #ffffff 50%, #f8f9fa 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    max-width: 200px;
    height: auto;
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(72, 60, 76, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(72, 60, 76, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(72, 60, 76, 0);
    }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: #3a2f3d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 60, 76, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Introduction Page */
.intro-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.intro-section {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(72, 60, 76, 0.12);
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #6b5570);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(72, 60, 76, 0.3);
    animation: fadeInDown 0.6s ease-out;
}

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

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-large {
    font-size: 1.2rem;
    padding: 1.5rem 4rem;
    box-shadow: 0 6px 20px rgba(72, 60, 76, 0.25);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.btn-large:hover {
    box-shadow: 0 10px 30px rgba(72, 60, 76, 0.35);
    transform: translateY(-3px);
}

.btn-arrow {
    margin-left: 0.75rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-large:hover .btn-arrow {
    transform: translateX(5px);
}

.hero-note {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.note-icon {
    font-size: 1.1rem;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.info-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(72, 60, 76, 0.15);
}

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

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.about-section {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.about-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.disclaimer-box {
    background-color: var(--secondary-color);
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Registration Form */
.registration-section {
    animation: fadeIn 0.6s ease-out;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.registration-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.registration-section > p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.required {
    color: var(--error-color);
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
    background-color: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(72, 60, 76, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* Quiz Page */
.quiz-page {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    z-index: 1000;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, #6b5570 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    box-shadow: 0 0 15px rgba(72, 60, 76, 0.7);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.quiz-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.question-container {
    padding: 2rem 0;
}

.question-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.question-text {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--primary-color);
    line-height: 1.3;
}

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

.answer-option {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-size: 1rem;
    width: 100%;
    position: relative;
}

.answer-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(72, 60, 76, 0.02);
    transform: translateX(8px);
}

.answer-option:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(72, 60, 76, 0.1);
}

.answer-option:active {
    transform: translateX(8px) scale(0.98);
}

.option-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 8px;
    margin-right: 1rem;
    font-size: 0.875rem;
}

.option-text {
    flex: 1;
    line-height: 1.5;
    color: var(--text-primary);
}

.keyboard-hint {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

kbd {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: var(--secondary-color);
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
    color: var(--primary-color);
}

.quiz-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.quiz-navigation .btn {
    min-width: 140px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Results Page */
.results-content {
    flex: 1;
    padding: 2rem 0;
}

.results-container {
    max-width: 700px;
    margin: 0 auto;
}

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

.results-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.user-name {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.score-display {
    text-align: center;
    margin-bottom: 3rem;
}

.score-circle {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.score-percentage {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.result-description {
    background-color: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.result-description p {
    margin-bottom: 1.5rem;
}

.result-description h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.result-description h3:first-child {
    margin-top: 0;
}

.disclaimer {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.results-actions {
    text-align: center;
}

/* Admin Pages */
.admin-page {
    background-color: #f5f5f5;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 1rem;
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.back-link:hover {
    color: #3a2f3d;
}

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

.stat-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.admin-actions {
    margin-bottom: 2rem;
}

.admin-content {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.users-table-container {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead {
    background-color: var(--secondary-color);
}

.users-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.users-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.users-table tbody tr:hover {
    background-color: rgba(245, 221, 205, 0.2);
}

.result-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.result-productive-stress {
    background-color: #d4edda;
    color: #155724;
}

.result-onset-of-stress {
    background-color: #fff3cd;
    color: #856404;
}

.result-chronic-stress {
    background-color: #ffe8cc;
    color: #cc5200;
}

.result-burnout {
    background-color: #f8d7da;
    color: #721c24;
}

.result-chronic-burnout {
    background-color: #d6d8d9;
    color: #1b1e21;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-in-progress {
    background-color: #fff3cd;
    color: #856404;
}

.status-registered {
    background-color: #e2e3e5;
    color: #383d41;
}

.text-muted {
    color: var(--text-secondary);
    font-style: italic;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-link:hover {
    color: #3a2f3d;
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
}

.pagination-btn:hover {
    background-color: #3a2f3d;
}

.pagination-info {
    color: var(--text-secondary);
}

/* User Details */
.user-details-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.user-info-card,
.user-result-card,
.user-responses-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-info-card h2,
.user-result-card h2,
.user-responses-card h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.info-value {
    color: var(--text-primary);
    font-size: 1rem;
}

.result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.burnout-triad {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.burnout-triad h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.triad-flags {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.flag-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    color: var(--text-secondary);
}

.flag-item.flag-active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
}

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

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

.response-item {
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.response-question {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.response-number {
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 0.5rem;
}

.response-answer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.response-value {
    color: var(--primary-color);
    font-weight: 600;
}

.response-text {
    color: var(--text-secondary);
}

/* Error Page */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.error-content {
    text-align: center;
}

.error-content h1 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-content p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

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

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--secondary-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .hero-section {
        padding: 3rem 1.5rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

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

    .btn-large {
        font-size: 1rem;
        padding: 1.25rem 2.5rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-section {
        padding: 1.5rem;
    }

    .registration-section {
        padding: 2rem 1.5rem;
    }

    .intro-section h1,
    .results-header h1 {
        font-size: 2rem;
    }

    .question-text {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .answer-option {
        padding: 1rem;
    }

    .option-number {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.8rem;
    }

    .result-description {
        padding: 1.5rem;
    }

    .admin-container {
        padding: 1rem;
    }

    .users-table {
        font-size: 0.875rem;
    }

    .users-table th,
    .users-table td {
        padding: 0.75rem 0.5rem;
    }

    .info-grid,
    .result-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2.5rem 1.5rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

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

    .btn-large {
        padding: 1.25rem 2rem;
        font-size: 1rem;
    }

    .card-icon {
        font-size: 2.5rem;
    }

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

    .about-section h2 {
        font-size: 1.5rem;
    }

    .intro-section h1 {
        font-size: 1.75rem;
    }

    .question-text {
        font-size: 1.25rem;
    }

    .btn {
        width: 100%;
    }

    .score-circle svg {
        width: 150px;
        height: 150px;
    }

    .score-percentage {
        font-size: 2rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .keyboard-hint,
    .results-actions,
    .admin-actions,
    .back-link,
    .btn-link {
        display: none;
    }

    body {
        background-color: white;
    }

    .result-description,
    .admin-content {
        border: 1px solid #ddd;
    }
}

/* Admin Login Page */
.admin-login-page .login-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-container {
    max-width: 400px;
    margin: 0 auto;
}

.login-container h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #f5c6cb;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
}

/* Admin Header Updates */
.admin-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.admin-nav {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.admin-nav .btn-link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
}

.admin-nav .btn-link:hover {
    background-color: rgba(72, 60, 76, 0.05);
}

.admin-nav .btn-link.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* Questions Table */
.questions-table-container {
    overflow-x: auto;
}

.questions-table {
    width: 100%;
    border-collapse: collapse;
}

.questions-table thead {
    background-color: var(--secondary-color);
}

.questions-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.questions-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.questions-table tbody tr:hover {
    background-color: rgba(245, 221, 205, 0.2);
}

.question-text-cell {
    max-width: 500px;
}

/* Question Form */
.question-form-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-section h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-section h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.form-section h3:first-child {
    margin-top: 0;
}

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

.form-row .form-group.small {
    grid-column: span 1;
    min-width: 100px;
    max-width: 150px;
}

.form-row .form-group.flex {
    flex: 1;
    min-width: 200px;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(72, 60, 76, 0.1);
}

.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
    background-color: white;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(72, 60, 76, 0.1);
}

/* Options Section */
.options-section {
    margin-top: 2rem;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-item {
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.option-content {
    flex: 1;
}

.option-actions {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
    min-width: 80px;
}

.option-actions .btn-link {
    padding: 0.375rem 0.75rem;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: white;
    font-size: 0.875rem;
}

.option-actions .btn-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.add-option-form {
    background-color: rgba(245, 221, 205, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .admin-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .questions-table {
        font-size: 0.875rem;
    }

    .questions-table th,
    .questions-table td {
        padding: 0.75rem 0.5rem;
    }

    .question-text-cell {
        max-width: 300px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row .form-group.small,
    .form-row .form-group.flex {
        max-width: 100%;
    }

    .option-item {
        flex-direction: column;
    }

    .option-actions {
        flex-direction: row;
        width: 100%;
    }
}

