/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 3rem;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

#welcome-user {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.logout-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

/* Screen Management */
.screen {
    display: none;
    flex: 1;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

/* Welcome Screen */
.welcome-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: slideInUp 0.8s ease-out;
}

.welcome-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.welcome-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.welcome-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.quiz-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.info-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 1.5rem;
}

/* Quiz Screen */
.quiz-header {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.quiz-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    padding: 10px 15px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    font-size: 1.1rem;
}

.timer-display.warning {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.quiz-layout {
    display: flex;
    gap: 20px;
    flex: 1;
}

.question-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.progress-container {
    flex: 1;
    min-width: 200px;
}

.progress-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

#question-counter {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    padding: 10px 15px;
    border-radius: 25px;
    color: #333;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.score-display i {
    color: #ff6b35;
}

.question-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.sidebar-card h4 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.question-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.progress-item {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.progress-item.not-answered {
    background: #f0f0f0;
    color: #666;
    border: 2px solid #e0e0e0;
}

.progress-item.answered {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: 2px solid #667eea;
    position: relative;
}

.progress-item.answered::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.progress-item.current {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    border: 2px solid #ffd700;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.question-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
    animation: slideInUp 0.5s ease-out;
}

.question-card h3 {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #333;
    line-height: 1.5;
    font-weight: 500;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    font-weight: 500;
}

.option:hover {
    background: #e3f2fd;
    border-color: #667eea;
    transform: translateX(5px);
}

.option.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.option.correct {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border-color: #4caf50;
}

.option.incorrect {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border-color: #f44336;
}

.option.disabled {
    pointer-events: none;
    opacity: 0.7;
}

.option-letter {
    background: rgba(255,255,255,0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.quiz-controls {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Results Screen */
.results-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: slideInUp 0.8s ease-out;
}

.results-icon {
    font-size: 4rem;
    color: #ffd700;
    margin-bottom: 20px;
    animation: bounce 1s ease-out;
}

.results-content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

.score-display-large {
    margin-bottom: 30px;
}

.score-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
}

.score-total {
    font-size: 1.2rem;
    opacity: 0.8;
}

.score-percentage {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
}

.performance-message {
    margin-bottom: 30px;
}

.performance-message p {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

.results-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #666;
}

.detail-item i {
    font-size: 1.3rem;
}

.detail-item i.fa-check-circle {
    color: #4caf50;
}

.detail-item i.fa-times-circle {
    color: #f44336;
}

/* Detailed Statistics */
.detailed-stats {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.detailed-stats h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.detailed-stats h3 i {
    color: #667eea;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #4caf50, #45a049);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.stat-card:nth-child(5) .stat-icon {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.stat-card:nth-child(6) .stat-icon {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Review Screen */
.review-header {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.review-header h2 {
    color: #333;
    font-weight: 600;
}

.review-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: slideInUp 0.5s ease-out;
}

.review-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-question {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.review-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-option {
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.review-option.user-answer {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.review-option.correct-answer {
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
}

.review-option.user-answer.correct {
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
}

/* Button Styles */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: inherit;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-secondary:hover:not(:disabled) {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: 1s;
}

.shape-5 {
    width: 70px;
    height: 70px;
    top: 40%;
    left: 5%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 450px;
    animation: slideInUp 0.8s ease-out;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

.login-header .logo i {
    font-size: 2.5rem;
    color: #333;
}

.login-header .logo h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin: 0;
}

.login-header .subtitle {
    color: #666;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.login-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group label i {
    color: #667eea;
    width: 18px;
    font-size: 1.1rem;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e8ecf4;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #999;
    font-weight: 400;
}

.login-btn {
    width: 100%;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 15px;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
    transform: translateY(-1px);
}

.login-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;
}

.login-btn:hover::before {
    left: 100%;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
}

.login-footer p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.demo-credentials {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.demo-credentials p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: #555;
}

.demo-credentials code {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.85rem;
}

.login-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    font-weight: 500;
    animation: slideInDown 0.3s ease-out;
    backdrop-filter: blur(10px);
}

.login-message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
    box-shadow: 0 5px 15px rgba(21, 87, 36, 0.1);
}

.login-message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
    box-shadow: 0 5px 15px rgba(114, 28, 36, 0.1);
}

.login-message i {
    font-size: 1.2rem;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Page Mobile Responsiveness */
@media (max-width: 768px) {
    .login-container {
        padding: 15px;
    }
    
    .login-card {
        padding: 30px 25px;
        max-width: 100%;
        border-radius: 20px;
    }
    
    .login-header .logo h1 {
        font-size: 1.6rem;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .login-header .logo i {
        font-size: 2rem;
    }
    
    .form-group input {
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .login-btn {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .demo-credentials {
        padding: 15px;
    }
    
    .demo-credentials p {
        font-size: 0.85rem;
    }
    
    .demo-credentials code {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
    
    .shape {
        display: none; /* Hide floating shapes on mobile for better performance */
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        padding: 25px 20px;
    }
    
    .login-header .logo h1 {
        font-size: 1.4rem;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .login-header .logo i {
        font-size: 1.8rem;
    }
    
    .login-header .subtitle {
        font-size: 1rem;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input {
        padding: 12px 15px;
    }
    
    .login-btn {
        padding: 14px 18px;
    }
    
    .demo-credentials {
        padding: 12px;
    }
    
    .demo-credentials p {
        font-size: 0.8rem;
        margin: 6px 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo i {
        font-size: 2.5rem;
    }
    
    .welcome-content,
    .question-card,
    .results-content {
        padding: 25px;
    }
    
    .quiz-info {
        flex-direction: column;
        align-items: center;
    }
    
    .info-card {
        min-width: 200px;
    }
    
    .quiz-header {
        flex-direction: column;
        text-align: center;
    }
    
    .quiz-layout {
        flex-direction: column;
    }
    
    .progress-sidebar {
        width: 100%;
        order: -1;
    }
    
    .sidebar-card {
        position: static;
    }
    
    .question-progress {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .quiz-controls {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .quiz-controls .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .results-details {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .review-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .welcome-content h2,
    .results-content h2 {
        font-size: 1.6rem;
    }
    
    .question-card h3 {
        font-size: 1.2rem;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
        font-size: 1.6rem;
    }
}
