* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    --success-color: #4CAF50;
    --warning-color: #FFA000;
    --error-color: #FF5722;
    --border-radius: 15px;
    --transition: all 0.3s ease;
    --shadow: 0 20px 40px rgba(0,0,0,0.1);
}

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    overflow: hidden;
    touch-action: pan-y;
    height: 100vh;
}

/* Enhanced Header with Larger Logo */
.quiz-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 0.5rem 1.5rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Larger Company Logo */
.company-logo {
    height: 60px;
    width: auto;
    border-radius: 10px;
    object-fit: contain;
    transition: var(--transition);
}

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

.company-name {
    color: white;
    font-weight: bold;
    font-size: 1.4rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.profile-btn, .logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.profile-btn:hover, .logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.profile-btn:focus, .logout-btn:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* Timer Styles */
.header-center {
    display: flex;
    align-items: center;
}

.timer-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timer-label {
    color: white;
    font-size: 0.9rem;
    opacity: 0.8;
}

.timer {
    color: #4CAF50;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.timer.pulse {
    animation: pulse 1s infinite;
}

/* Adjust progress bar position for larger header */
.progress-bar {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 999;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA000);
    transition: width 0.3s ease;
    width: 0%;
}

/* Adjust main container for larger header */
.reels-container {
    height: 100vh;
    position: relative;
    padding-top: 84px;
    box-sizing: border-box;
}

/* Centered Question Slides */
.question-slide {
    height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    padding: 20px;
    position: relative;
}

.question-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 1200px;
    text-align: center;
    gap: 2rem;
    margin: 0 auto;
}

.question-image {
    max-width: 900px;
    max-height: 600px;
    width: auto;
    height: auto;
    border-radius: 20px;
    object-fit: contain;
    border: 4px solid white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    background: rgba(255, 255, 255, 0.1);
    display: block;
    margin: 0 auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    will-change: transform;
}

.question-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 2rem;
}

.question-text {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.3;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    max-width: 800px;
    margin: 0;
    text-align: center;
}

/* Options Grid */
.options-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    justify-items: center;
}

/* Option Buttons */
.option-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-break: break-word;
    width: 100%;
    max-width: 350px;
    user-select: none;
    will-change: transform;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.option-btn:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

.option-btn.selected {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.02);
}

.option-btn.correct {
    border-color: var(--success-color);
    background: rgba(76, 175, 80, 0.2);
}

.option-btn.wrong {
    border-color: var(--error-color);
    background: rgba(255, 87, 34, 0.2);
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin-top: 1rem;
    gap: 1rem;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    min-width: 120px;
    will-change: transform;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-btn:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.prev-btn {
    order: 1;
}

.next-btn {
    order: 3;
}

.navigation-buttons .counter {
    position: static;
    order: 2;
    color: white;
    font-weight: bold;
}

/* Submit Button */
.submit-btn {
    background: var(--success-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    width: 200px;
    will-change: transform;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.submit-btn:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

.counter {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1.1rem;
    opacity: 0.8;
    font-weight: bold;
}

/* Authentication Styles */
.auth-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    padding: 20px;
}

.auth-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 450px;
    width: 100%;
    text-align: center;
}

/* Larger Logo in Auth Pages */
.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.auth-logo {
    height: 100px;
    width: auto;
    border-radius: 15px;
    object-fit: contain;
    padding: 10px;
    background: var(--primary-gradient);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.auth-title {
    color: #333;
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

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

.auth-input {
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.auth-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-input:valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234CAF50'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

.auth-input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: var(--error-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff4444'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

.auth-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.auth-btn:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

.auth-divider {
    margin: 1.5rem 0;
    position: relative;
    color: #999;
}

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

.auth-divider span {
    background: white;
    padding: 0 1rem;
}

.auth-switch-btn {
    background: none;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 0.8rem;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.auth-switch-btn:hover {
    background: #667eea;
    color: white;
}

/* Enhanced Auth Styles */
.input-with-verification {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.otp-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: var(--transition);
    min-width: 100px;
}

.otp-btn:hover:not(:disabled) {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.otp-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* CAPTCHA Styles */
.captcha-container {
    margin: 1rem 0;
}

.captcha-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.refresh-captcha {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-captcha:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.strength-weak { color: var(--error-color); }
.strength-medium { color: var(--warning-color); }
.strength-strong { color: var(--success-color); }

/* Security Notice */
.security-notice {
    background: #e3f2fd;
    border: 1px solid #2196F3;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #1565C0;
}

.security-notice ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

/* Forgot Password */
.forgot-password-container {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e5e9;
}

.forgot-password-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    transition: var(--transition);
    padding: 0.5rem;
}

.forgot-password-btn:hover {
    color: #5a6fd8;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 5px;
}

.password-reset-info {
    background: #e3f2fd;
    border: 1px solid #2196F3;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #1565C0;
}

.reset-success {
    background: #e8f5e8;
    border: 1px solid var(--success-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin: 1rem 0;
}

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

/* Fixed Results Container */
.results-container {
    min-height: 100vh;
    background: var(--success-gradient);
    padding: 90px 20px 20px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
}

.results-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 800px;
    width: 100%;
    text-align: center;
    margin: 20px 0;
}

/* Larger Logo in Results Page */
.results-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.results-logo {
    height: 80px;
    width: auto;
    border-radius: 12px;
    object-fit: contain;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

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

.user-greeting {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.results-title {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.results-score {
    color: var(--success-color);
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.results-percentage {
    color: #666;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Make detailed results scrollable */
.detailed-results {
    margin: 2rem 0;
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.detailed-results h3 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

/* Custom scrollbar for detailed results */
.detailed-results::-webkit-scrollbar {
    width: 8px;
}

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

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

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

.result-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #ccc;
}

.result-item.correct {
    border-left-color: var(--success-color);
    background: #e8f5e8;
}

.result-item.incorrect {
    border-left-color: var(--error-color);
    background: #ffebee;
}

.result-question {
    color: #333;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.result-answer {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.user-answer {
    color: var(--error-color);
}

.correct-answer {
    color: var(--success-color);
    font-weight: bold;
}

.result-status {
    margin-top: 0.5rem;
    font-weight: bold;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.restart-btn, .profile-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    min-width: 200px;
}

.restart-btn:hover, .profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Profile Page */
.profile-container {
    min-height: 100vh;
    background: var(--primary-gradient);
    padding: 90px 20px 20px 20px;
    color: white;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.back-btn:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

.profile-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.stats-container {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.attempts-history {
    max-width: 600px;
    margin: 0 auto;
}

.attempt-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.attempt-score {
    font-weight: bold;
    font-size: 1.1rem;
}

.attempt-date {
    opacity: 0.8;
    font-size: 0.9rem;
}

.no-attempts {
    text-align: center;
    opacity: 0.8;
    font-style: italic;
}

/* Already Attempted Screen Styles */
.attempted-message {
    text-align: center;
    margin: 2rem 0;
}

.attempted-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.attempted-title {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.attempted-text {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.previous-result {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.previous-result h3 {
    color: #333;
    margin-bottom: 1rem;
}

.result-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score {
    font-size: 2rem;
    font-weight: bold;
    color: var(--success-color);
}

.percentage {
    font-size: 1.2rem;
    color: #666;
}

.attempt-date {
    color: #888;
    font-size: 0.9rem;
}

/* One Time Message Styles */
.one-time-message {
    background: #e3f2fd;
    border: 2px solid #2196F3;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

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

.message-text {
    color: #1565C0;
    margin: 0;
    font-weight: 500;
}

/* No Attempts Container */
.no-attempts-container {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin: 2rem 0;
}

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

.no-attempts-container h3 {
    color: white;
    margin-bottom: 1rem;
}

.no-attempts-container p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Watermark */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

.watermark::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background-image: url('images/company-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Submission Page */
.submission-container {
    min-height: 100vh;
    background: var(--primary-gradient);
    padding: 90px 20px 20px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.submission-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.submission-header {
    margin-bottom: 2rem;
}

.submission-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.submission-message {
    margin: 2rem 0;
}

.submission-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.submission-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.detail-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.detail-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.detail-value {
    color: #333;
    font-size: 1.2rem;
    font-weight: bold;
}

.submission-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Error and Success Messages */
.error-message {
    color: var(--error-color);
    background: rgba(255,68,68,0.1);
    padding: 0.5rem;
    border-radius: 5px;
    margin: 0.5rem 0;
    border-left: 3px solid var(--error-color);
}

.success-message {
    color: var(--success-color);
    background: rgba(76,175,80,0.1);
    padding: 0.5rem;
    border-radius: 5px;
    margin: 0.5rem 0;
    border-left: 3px solid var(--success-color);
}

/* Remove swipe hint since we have buttons */
.swipe-hint {
    display: none;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quiz-header {
        height: 70px;
        padding: 0.5rem 1rem;
    }
    
    .company-logo {
        height: 50px;
    }
    
    .progress-bar {
        top: 70px;
    }
    
    .reels-container {
        padding-top: 74px;
    }
    
    .question-slide {
        height: calc(100vh - 74px);
        padding: 10px;
    }
    
    .question-wrapper {
        width: 95%;
        gap: 1.5rem;
    }
    
    .question-image {
        max-width: 95%;
        max-height: 400px;
    }
    
    .question-text {
        font-size: 1.6rem;
        max-width: 95%;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 1rem;
    }
    
    .option-btn {
        min-height: 80px;
        padding: 1.5rem 1rem;
        font-size: 1.2rem;
        max-width: 100%;
    }
    
    .company-name {
        font-size: 1.2rem;
    }
    
    .profile-btn, .logout-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .auth-box {
        padding: 2rem;
        margin: 1rem;
    }
    
    .auth-title {
        font-size: 1.7rem;
    }
    
    .auth-logo {
        height: 80px;
    }
    
    .results-container {
        padding: 80px 15px 15px 15px;
    }
    
    .results-content {
        padding: 1.5rem;
        margin: 10px 0;
    }
    
    .detailed-results {
        max-height: 300px;
    }
    
    .results-title {
        font-size: 2rem;
    }
    
    .results-score {
        font-size: 2.5rem;
    }
    
    .results-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .restart-btn, .profile-btn {
        width: 100%;
    }
    
    .timer-container {
        padding: 0.4rem 0.8rem;
    }
    
    .timer-label {
        font-size: 0.8rem;
    }
    
    .timer {
        font-size: 1rem;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .nav-btn {
        width: 100%;
        order: unset !important;
    }
    
    .navigation-buttons .counter {
        order: unset;
    }
    
    .watermark::after {
        width: 300px;
        height: 300px;
    }
    
    .submission-details {
        grid-template-columns: 1fr;
    }
    
    .input-with-verification {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .otp-btn {
        width: 100%;
    }
    
    .captcha-display {
        font-size: 1rem;
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .quiz-header {
        height: 65px;
        padding: 0.4rem 0.8rem;
    }
    
    .company-logo {
        height: 45px;
    }
    
    .progress-bar {
        top: 65px;
    }
    
    .reels-container {
        padding-top: 69px;
    }
    
    .question-slide {
        height: calc(100vh - 69px);
    }
    
    .question-image {
        max-height: 350px;
    }
    
    .question-text {
        font-size: 1.4rem;
    }
    
    .option-btn {
        min-height: 70px;
        padding: 1.2rem 0.8rem;
        font-size: 1.1rem;
    }
    
    .company-name {
        font-size: 1.1rem;
    }
    
    .user-info span {
        display: none;
    }
    
    .auth-logo {
        height: 70px;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .results-logo {
        height: 60px;
    }
    
    /* Better touch targets for mobile */
    .option-btn, .nav-btn {
        min-height: 44px;
    }
    
    /* Prevent zoom on input focus for iOS */
    input, select, textarea {
        font-size: 16px;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Accessibility: High Contrast */
@media (prefers-contrast: high) {
    .question-text, .company-name {
        color: #000;
        text-shadow: none;
    }
    
    .option-btn {
        border-width: 3px;
    }
}

/* Print Styles */
@media print {
    .quiz-header, .nav-btn, .profile-btn {
        display: none;
    }
    
    .results-content {
        box-shadow: none;
        background: white;
    }
    
    body {
        background: white;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .auth-box {
        background: rgba(30, 30, 30, 0.95);
        color: white;
    }
    
    .auth-input {
        background: rgba(255,255,255,0.1);
        color: white;
        border-color: #555;
    }
    
    .auth-title {
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.4;
    padding: 10px;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e5e9;
}

.main-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 5px;
    font-weight: bold;
}

.subtitle {
    font-size: 1rem;
    color: #666;
    font-weight: 300;
}

.time-indicator {
    background: #ffd700;
    color: #333;
    padding: 3px 12px;
    border-radius: 15px;
    display: inline-block;
    margin-top: 8px;
    font-weight: bold;
    font-size: 0.9rem;
}

.results-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
    padding-left: 5px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
}

.results-table th {
    background: #667eea;
    color: white;
    padding: 8px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.results-table td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid #e1e5e9;
    font-size: 0.9rem;
}

.results-table tr:nth-child(even) {
    background: #f1f3f4;
}

.question-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.question-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.option {
    background: white;
    padding: 8px 5px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e1e5e9;
    font-weight: bold;
    font-size: 0.9rem;
}

.option.highlight {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.products-section {
    margin-top: 15px;
}

.products-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.product-card {
    background: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e1e5e9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.product-label {
    font-size: 0.8rem;
    color: #666;
}

.divider {
    height: 1px;
    background: #e1e5e9;
    margin: 15px 0;
}

/* Compact mobile styles */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    .container {
        padding: 15px;
        margin: 5px auto;
    }
    
    .header {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .main-title {
        font-size: 1.6rem;
        margin-bottom: 3px;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .results-table th,
    .results-table td {
        padding: 6px 8px;
        font-size: 0.85rem;
    }
    
    .question-section {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .options-grid {
        gap: 6px;
    }
    
    .option {
        padding: 6px 4px;
        font-size: 0.85rem;
    }
    
    .products-grid {
        gap: 8px;
    }
    
    .product-card {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
        border-radius: 8px;
    }
    
    .main-title {
        font-size: 1.4rem;
    }
    
    .options-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .results-table {
        font-size: 0.8rem;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        background: white;
        padding: 10px;
    }
}
/* ===== ENHANCED STYLING ===== */

/* Modern Glass Morphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced Button Styles */
.enhanced-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.enhanced-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 ease;
}

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

.enhanced-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.enhanced-btn:active {
    transform: translateY(-1px);
}

/* Modern Input Fields */
.modern-input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.modern-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

/* Enhanced Card Designs */
.modern-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated Progress Bar */
.animated-progress {
    height: 6px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    border-radius: 3px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse Animation */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 0 30px rgba(102, 126, 234, 0.6); }
}

/* Enhanced Option Buttons */
.option-btn-enhanced {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

.option-btn-enhanced:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.option-btn-enhanced.selected {
    background: rgba(255, 215, 0, 0.3);
    border-color: #FFD700;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.option-btn-enhanced.correct {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.4);
}

.option-btn-enhanced.wrong {
    background: rgba(244, 67, 54, 0.3);
    border-color: #F44336;
    box-shadow: 0 0 30px rgba(244, 67, 54, 0.4);
}

/* Modern Header */
.modern-header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

/* Enhanced Timer */
.timer-enhanced {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
    border: 2px solid rgba(255,255,255,0.2);
}

.timer-enhanced.warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    animation: pulse 1s infinite;
}

.timer-enhanced.danger {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    animation: pulse 0.5s infinite;
}

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

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

/* Enhanced Results Page */
.results-enhanced {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.results-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

/* Celebration Animation */
.celebration {
    animation: celebrate 0.6s ease-out;
}

@keyframes celebrate {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .modern-card {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 15px;
    }
    
    .enhanced-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .option-btn-enhanced {
        padding: 1rem 0.8rem;
        font-size: 1.1rem;
        min-height: 80px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .modern-card {
        background: rgba(30, 30, 30, 0.95);
        color: white;
    }
    
    .modern-input {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border-color: #444;
    }
    
    .modern-input:focus {
        background: rgba(255, 255, 255, 0.15);
    }
}
/* Password Show/Hide Toggle Styles */
.password-container {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    color: #666;
    z-index: 2;
}

.password-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* Adjust input padding to make space for toggle */
.password-container .auth-input {
    padding-right: 50px !important;
}

/* Enhanced password strength indicator */
.password-strength {
    margin-top: 5px;
    font-size: 0.8rem;
    height: 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-weak {
    background: #ff4444;
    width: 25%;
}

.strength-medium {
    background: #ffaa00;
    width: 50%;
}

.strength-strong {
    background: #4CAF50;
    width: 100%;
}

.strength-text {
    font-size: 0.8rem;
    margin-top: 5px;
    text-align: right;
}