/* English Entrance Quiz - Modern Frontend Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px 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);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset and Base Styles */
.eeq-quiz-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-color);
    min-height: 100vh;
}

.eeq-quiz-container * {
    box-sizing: border-box;
}

/* Header Styles */
.eeq-quiz-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 48px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    color: white;
    position: relative;
    overflow: hidden;
}

.eeq-quiz-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Quiz Header with Logo */
.eeq-quiz-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.eeq-quiz-logo {
    max-width: fit-content;
    height: auto;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.eeq-quiz-logo:hover {
    transform: scale(1.05);
}

.eeq-quiz-title {
    color: white;
    font-size: 3rem;
    margin: 0 0 16px 0;
    font-weight: 700;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
}

.eeq-quiz-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Progress Bar */
.eeq-progress-container {
    margin: 32px 0 40px 0;
    background: var(--card-background);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.eeq-progress-bar {
    width: 100%;
    height: 12px;
    background-color: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

.eeq-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
}

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

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

.eeq-progress-text {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.eeq-progress-text::before {
    content: '📝';
    font-size: 1.2rem;
}

/* Question Navigation */
.eeq-question-nav {
    display: none; /* Hidden by default until quiz starts */
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 32px 0 40px 0;
    padding: 24px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
}

/* Show navigation when quiz is started */
.eeq-quiz-started .eeq-question-nav {
    display: flex;
}

.eeq-question-nav::before {
    content: 'Question Navigation';
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--card-background);
    padding: 0 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.eeq-nav-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border-color);
    background: var(--card-background);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 1rem;
    color: var(--text-secondary);
}

.eeq-nav-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.eeq-nav-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.eeq-nav-btn.answered {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.eeq-nav-btn.answered::after {
    content: '✓';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: 2px solid white;
}

.eeq-nav-btn.unanswered {
    background: #f39c12;
    color: white;
    border-color: #f39c12;
    position: relative;
}

.eeq-nav-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.15);
    box-shadow: var(--shadow-lg);
}

.eeq-nav-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.eeq-nav-btn.mandatory {
    border-color: var(--error-color);
    position: relative;
}

.eeq-nav-btn.mandatory::before {
    content: '*';
    position: absolute;
    top: -8px;
    right: -8px;
    color: var(--error-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* User Information Form */
.eeq-user-info {
    background: var(--card-background);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.eeq-user-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.eeq-user-info h3 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.eeq-user-info h3::before {
    content: '👤';
    font-size: 1.5rem;
}

.eeq-form-group {
    margin-bottom: 24px;
    position: relative;
}

.eeq-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.eeq-optional {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-style: italic;
}

.eeq-form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-background);
    color: var(--text-primary);
    font-family: inherit;
}

.eeq-form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.eeq-form-group input:focus + label {
    color: var(--primary-color);
}

/* Question Styles */
.eeq-quiz-questions {
    margin-top: 32px;
}

.eeq-question {
    background: var(--card-background);
    padding: 48px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    margin-bottom: 32px;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.eeq-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--success-color) 100%);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.eeq-context {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 24px;
    border-radius: var(--border-radius);
    margin-bottom: 32px;
    border-left: 6px solid var(--primary-color);
    position: relative;
}

.eeq-context::before {
    content: '📖';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.5rem;
    opacity: 0.6;
}

.eeq-context h4 {
    margin: 0 0 12px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.eeq-context h4::before {
    content: '💡';
    font-size: 1rem;
}

.eeq-context p {
    margin: 0;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
}

.eeq-question-text {
    font-size: 1.5rem;
    margin: 0 0 32px 0;
    color: var(--text-primary);
    line-height: 1.4;
    font-weight: 600;
    position: relative;
    padding-left: 40px;
}

.eeq-question-text::before {
    content: '❓';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
}

.eeq-mandatory {
    color: var(--error-color);
    font-weight: bold;
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Options Styles */
.eeq-options {
    margin: 32px 0;
    display: grid;
    gap: 16px;
}

.eeq-option {
    display: block;
    padding: 20px 24px;
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.eeq-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.eeq-option:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.eeq-option:hover::before {
    background: var(--primary-color);
}

.eeq-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.eeq-option input[type="radio"]:checked ~ .eeq-option-letter,
.eeq-option input[type="radio"]:checked ~ .eeq-option-text {
    font-weight: 600;
    color: var(--primary-color);
}

.eeq-option.selected {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.eeq-option.selected::before {
    background: var(--primary-color);
}

.eeq-option.selected::after {
    content: '✓';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
}

.eeq-option-letter {
    display: inline-block;
    font-weight: bold;
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-right: 12px;
    min-width: 25px;
}

.eeq-option-text {
    display: inline-block;
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--text-primary);
    transition: color 0.3s ease;
    padding-right: 40px;
}

.eeq-no-options {
    color: var(--error-color);
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--border-radius);
}

.eeq-no-questions {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.eeq-no-questions h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.eeq-no-questions p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin: 0;
}

/* Button Styles */
.eeq-btn {
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 140px;
    gap: 8px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.eeq-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.eeq-btn:hover::before {
    left: 100%;
}

.eeq-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.eeq-btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.eeq-btn-primary::after {
    content: '→';
    transition: transform 0.3s ease;
}

.eeq-btn-primary:hover::after {
    transform: translateX(4px);
}

.eeq-btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.eeq-btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.eeq-btn-secondary::after {
    content: '←';
    transition: transform 0.3s ease;
}

.eeq-btn-secondary:hover::after {
    transform: translateX(-4px);
}

.eeq-btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.eeq-btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, var(--success-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.eeq-btn-success::after {
    content: '✓';
    transition: transform 0.3s ease;
}

.eeq-btn-success:hover::after {
    transform: scale(1.2);
}

/* Disabled button styles */
.eeq-btn:disabled,
.eeq-btn.disabled {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: #ecf0f1;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
    opacity: 0.7;
}

.eeq-btn:disabled:hover,
.eeq-btn.disabled:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.eeq-btn:disabled::before,
.eeq-btn.disabled::before {
    display: none;
}

.eeq-btn:disabled::after,
.eeq-btn.disabled::after {
    content: '⏳';
    transform: none;
}

.eeq-question-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
    gap: 20px;
}

/* Special spacing for separator actions */
.eeq-separator .eeq-question-actions {
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 25px;
    padding-top: 25px;
    padding-bottom: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Improved button spacing in separators */
.eeq-separator .eeq-btn {
    min-width: 120px;
    padding: 12px 24px;
    margin: 0 10px;
}

/* When only one button (Continue) is present */
.eeq-separator .eeq-question-actions .eeq-btn:only-child {
    margin: 0 auto;
}

/* Better alignment when both Previous and Continue are present */
.eeq-separator .eeq-question-actions .eeq-prev-btn {
    margin-right: auto;
}

.eeq-separator .eeq-question-actions .eeq-next-btn {
    margin-left: auto;
}

/* Loading and Success States */
.eeq-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.eeq-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

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

.eeq-loading p {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

/* Notifications */
.eeq-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    border-left: 4px solid var(--primary-color);
    animation: slideInRight 0.3s ease;
}

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

.eeq-notification-success {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.eeq-notification-error {
    border-left-color: var(--error-color);
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.eeq-notification-warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.eeq-notification-info {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

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

.eeq-notification-message {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.eeq-notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.eeq-notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

/* Custom Modal Styles */
.eeq-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.eeq-modal-overlay.eeq-modal-show {
    opacity: 1;
    visibility: visible;
}

.eeq-modal {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.eeq-modal-overlay.eeq-modal-show .eeq-modal {
    transform: scale(1) translateY(0);
}

.eeq-modal-header {
    padding: 24px 32px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.eeq-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.eeq-modal-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--warning-color);
    color: white;
}

.eeq-modal-body {
    padding: 32px;
}

.eeq-modal-message {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.eeq-modal-actions {
    padding: 20px 32px 32px;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.eeq-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    font-family: inherit;
}

.eeq-modal-btn-cancel {
    background: var(--card-background);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.eeq-modal-btn-cancel:hover {
    background: var(--background-color);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.eeq-modal-btn-confirm {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.eeq-modal-btn-confirm:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.eeq-success {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.eeq-success-icon {
    font-size: 4em;
    color: #28a745;
    margin-bottom: 20px;
}

.eeq-success h3 {
    color: #28a745;
    margin: 0 0 15px 0;
    font-size: 1.8em;
}

/* Completed Quiz Styles */
.eeq-completed-message {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.eeq-results-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
}

.eeq-score-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
}

.eeq-score {
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
}

.eeq-percentage {
    font-size: 2em;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 25px;
}

.eeq-percentage.eeq-pass {
    background: #d4edda;
    color: #155724;
}

.eeq-percentage.eeq-fail {
    background: #f8d7da;
    color: #721c24;
}

.eeq-completion-date {
    color: #666;
    font-size: 0.9em;
    margin-top: 15px;
}

.eeq-review-status {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
}

.eeq-review-status.eeq-reviewed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.eeq-review-status.eeq-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.eeq-admin-notes {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    border-left: 4px solid #0073aa;
}

.eeq-admin-notes h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .eeq-quiz-container {
        padding: 15px;
    }
    
    .eeq-quiz-logo {
        max-width: 150px;
        margin-bottom: 15px;
    }

    .eeq-quiz-title {
        font-size: 2em;
    }
    
    .eeq-question {
        padding: 20px;
    }
    
    .eeq-question-nav {
        gap: 6px;
    }
    
    .eeq-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
    
    .eeq-question-actions {
        flex-direction: column;
        gap: 15px;
    }

    /* Separator actions on mobile */
    .eeq-separator .eeq-question-actions {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .eeq-btn {
        width: 100%;
    }

    /* Separator buttons on mobile */
    .eeq-separator .eeq-btn {
        width: auto;
        min-width: 100px;
        flex: 0 0 auto;
    }

    /* Modal responsive styles */
    .eeq-modal {
        width: 95%;
        margin: 20px;
    }

    .eeq-modal-header {
        padding: 20px 24px 16px;
    }

    .eeq-modal-title {
        font-size: 1.25rem;
    }

    .eeq-modal-body {
        padding: 24px;
    }

    .eeq-modal-message {
        font-size: 1rem;
    }

    .eeq-modal-actions {
        padding: 16px 24px 24px;
        flex-direction: column-reverse;
    }

    .eeq-modal-btn {
        width: 100%;
        justify-content: center;
    }
    
    .eeq-score-display {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .eeq-quiz-container {
        padding: 10px;
    }
    
    .eeq-user-info,
    .eeq-question {
        padding: 15px;
    }
    
    .eeq-question-text {
        font-size: 1.1em;
    }
    
    .eeq-option {
        padding: 12px 15px;
    }
}

/* ===================================
   SEPARATOR STYLES
   =================================== */

/* Separator container */
.eeq-separator {
    background: #ffffff;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    position: relative;
}

.eeq-separator-content {
    padding: 30px 25px;
    text-align: center;
    color: #333;
    position: relative;
}

.eeq-separator-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    font-weight: 500;
    color: #333;
}

.eeq-separator-text strong {
    font-weight: 700;
    color: #333;
}



/* Responsive separator */
@media (max-width: 768px) {
    .eeq-separator-content {
        padding: 30px 20px;
    }

    .eeq-separator-text {
        font-size: 18px;
    }

    .eeq-continue-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* ===================================
   WYSIWYG CONTENT STYLES
   =================================== */

/* Styles for WYSIWYG content in questions and separators */
.eeq-question-text p,
.eeq-separator-text p {
    margin: 0 0 1em 0;
    line-height: 1.6;
}

.eeq-question-text p:last-child,
.eeq-separator-text p:last-child {
    margin-bottom: 0;
}

.eeq-question-text strong,
.eeq-separator-text strong {
    font-weight: 700;
    color: inherit;
}

.eeq-question-text em,
.eeq-separator-text em {
    font-style: italic;
}

.eeq-question-text u,
.eeq-separator-text u {
    text-decoration: underline;
}

.eeq-question-text ul,
.eeq-question-text ol,
.eeq-separator-text ul,
.eeq-separator-text ol {
    margin: 1em 0;
    padding-left: 2em;
}

.eeq-question-text li,
.eeq-separator-text li {
    margin: 0.5em 0;
    line-height: 1.5;
}

.eeq-question-text a,
.eeq-separator-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.eeq-question-text a:hover,
.eeq-separator-text a:hover {
    color: var(--primary-dark);
}

/* Special styling for separator WYSIWYG content */
.eeq-separator-text strong {
    color: #333;
    font-weight: 700;
}

.eeq-separator-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.eeq-separator-text a:hover {
    color: var(--primary-dark);
}
