:root {
    --eap-primary: #a67c37;
    --eap-secondary: #8b652d;
    --eap-bg: #ffffff;
    --eap-glass: rgba(255, 255, 255, 0.95);
    --eap-text: #000000;
}

#eap-assessment-container {
    max-width: 1000px;
    margin: 40px auto;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--eap-text);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.eap-glass {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.eap-header {
    background: var(--eap-primary);
    color: var(--eap-text);
    padding: 30px;
    text-align: center;
}

.eap-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.eap-body {
    padding: 40px;
}

.eap-form-group {
    margin-bottom: 25px;
}

.eap-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.eap-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

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

.eap-btn {
    display: inline-block;
    background: var(--eap-primary);
    color: var(--eap-text);
    padding: 14px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    width: 100%;
    font-size: 16px;
}

.eap-btn:hover {
    background: var(--eap-secondary);
    transform: translateY(-2px);
}

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

/* Quiz Styles */
.eap-question {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
}

.eap-options {
    display: grid;
    gap: 15px;
}

.eap-option {
    padding: 15px 20px;
    border: 2px solid #f3f4f6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f9fafb;
    position: relative;
    display: flex;
    align-items: center;
}

.eap-option:hover {
    border-color: var(--eap-primary);
    background: #eef2ff;
}

.eap-option.selected {
    border-color: var(--eap-primary);
    background: #eef2ff;
    box-shadow: 0 0 0 1px var(--eap-primary);
}

.eap-option-letter {
    width: 30px;
    height: 30px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: 700;
    font-size: 14px;
}

.eap-option.selected .eap-option-letter {
    background: var(--eap-primary);
    color: #fff;
    border-color: var(--eap-primary);
}

.eap-progress-container {
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.eap-progress-bar {
    height: 100%;
    background: var(--eap-primary);
    width: 0%;
    transition: width 0.4s ease;
}

.eap-loading {
    padding: 100px;
    text-align: center;
    font-style: italic;
    color: #6b7280;
}

.eap-error-box {
    background: #fee2e2;
    border: 1px solid #f87171;
    color: #991b1b;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.eap-success-box {
    text-align: center;
}

.eap-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--eap-primary);
    color: var(--eap-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin: 30px auto;
}

textarea.eap-text-response {
    width: 100%;
    height: 150px;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 20px;
}

textarea.eap-writing-response {
    height: 250px;
}

/* Audio Player Styles */
.eap-audio-container {
    background: #fdfaf3;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #e9d5a1;
    margin-bottom: 30px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.eap-audio-player {
    width: 100%;
    height: 40px;
    border-radius: 8px;
}

/* Customizing the native player colors (limited support but helpful) */
.eap-audio-player::-webkit-media-controls-panel {
    background-color: #fdfaf3;
}

/* Split Layout for Reading */
.eap-split-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.eap-reading-pane {
    flex: 1;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.eap-reading-content {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
}

.eap-reading-content p {
    margin-bottom: 15px;
}

.eap-question-pane {
    flex: 1;
}

/* Custom Audio Button */
.eap-custom-audio-btn {
    background: var(--eap-primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(166, 124, 55, 0.3);
}

.eap-custom-audio-btn:hover {
    background: var(--eap-secondary);
    transform: scale(1.02);
}

.eap-custom-audio-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.eap-play-icon {
    font-size: 18px;
}

@media (max-width: 768px) {
    .eap-split-layout {
        flex-direction: column;
    }
    .eap-reading-pane {
        max-height: 40vh;
        width: 100%;
        box-sizing: border-box;
    }
    .eap-question-pane {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .eap-body {
        padding: 20px;
    }
    .eap-question {
        font-size: 18px;
    }
}

/* Voice Recorder UI */
.eap-recording-container {
    background: #fdf2f2;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #fca5a5;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.eap-recording-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.eap-record-btn {
    background: #ef4444;
    color: white !important;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.eap-record-btn:hover {
    background: #dc2626;
    transform: scale(1.02);
}

.eap-record-btn.recording {
    background: #b91c1c;
    animation: eap-pulse-red 1.5s infinite;
}

.eap-recording-status {
    font-weight: bold;
    font-size: 14px;
    color: #b91c1c;
    display: flex;
    align-items: center;
    gap: 5px;
}

.eap-recording-status .eap-dot {
    width: 8px;
    height: 8px;
    background: #b91c1c;
    border-radius: 50%;
    animation: eap-pulse-dot 1s infinite alternate;
}

.eap-recording-preview {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #fca5a5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eap-recording-preview span {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
}

.eap-upload-fallback {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e5e7eb;
}

.eap-upload-fallback label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    display: block;
    margin-bottom: 5px;
}

.eap-upload-fallback input {
    font-size: 13px;
}

/* Animations */
@keyframes eap-pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes eap-pulse-dot {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* Grouped Questions UI */
.eap-grouped-question-wrapper {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.eap-grouped-question-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1f2937;
    display: flex;
    gap: 10px;
}

.eap-grouped-question-number {
    color: var(--eap-primary);
}

.eap-grouped-options {
    display: grid;
    gap: 10px;
}

.eap-vertical-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
}

