/* Quiz Bottom Bar Styles */
.ays-quiz-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #2c3e50, #34495e);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    padding: 12px 20px;
    display: none;
}

.ays-bottom-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ays-bottom-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ecf0f1;
    font-size: 14px;
    font-weight: 500;
}

.ays-bottom-bar-icon {
    font-size: 18px;
}

.ays-bottom-bar-label {
    color: #bdc3c7;
    font-weight: 400;
}

.ays-bottom-bar-value {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
}

.ays-bottom-bar-total {
    color: #95a5a6;
    font-size: 14px;
}

/* Time warning (less than 1 minute) */
.ays-bottom-bar-time.time-warning {
    animation: pulse-warning 1s infinite;
}

.ays-bottom-bar-time.time-warning .ays-bottom-bar-value {
    color: #e74c3c;
}

@keyframes pulse-warning {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Progress bar */
.ays-bottom-bar-percentage {
    flex: 1;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ays-bottom-progress-bar {
    flex: 1;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.ays-bottom-progress-fill {
    height: 100%;
    background: linear-gradient(to right, #3498db, #2980b9);
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 12px;
}

.ays-bottom-progress-fill.low {
    background: linear-gradient(to right, #e74c3c, #c0392b);
}

.ays-bottom-progress-fill.medium {
    background: linear-gradient(to right, #f39c12, #d68910);
}

.ays-bottom-progress-fill.high {
    background: linear-gradient(to right, #27ae60, #229954);
}

.ays-bottom-bar-percent {
    min-width: 45px;
    text-align: right;
    color: #ffffff;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ays-bottom-bar-container {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .ays-bottom-bar-item {
        justify-content: center;
    }
    
    .ays-bottom-bar-percentage {
        max-width: 100%;
        width: 100%;
    }
    
    .ays-quiz-bottom-bar {
        padding: 10px 15px;
    }
}

/* Ensure quiz container has bottom padding to avoid content overlap */
.ays-quiz-container {
    padding-bottom: 80px !important;
}

/* Alternative Light Theme */
.ays-quiz-bottom-bar.light-theme {
    background: linear-gradient(to right, #ecf0f1, #bdc3c7);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.ays-quiz-bottom-bar.light-theme .ays-bottom-bar-item {
    color: #2c3e50;
}

.ays-quiz-bottom-bar.light-theme .ays-bottom-bar-label {
    color: #7f8c8d;
}

.ays-quiz-bottom-bar.light-theme .ays-bottom-bar-value {
    color: #2c3e50;
}

.ays-quiz-bottom-bar.light-theme .ays-bottom-bar-total {
    color: #95a5a6;
}

.ays-quiz-bottom-bar.light-theme .ays-bottom-progress-bar {
    background-color: rgba(0, 0, 0, 0.1);
}
