/**
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 *
 * @author    FMM Modules
 * @copyright Copyright 2025 © FMM Modules
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */

/**
 * Demo Helper - Countdown Bar Styles
 * A fixed bar at the bottom of the screen showing session expiry countdown
 */

.demohelper-countdown-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 15px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    animation: demohelperSlideUp 0.5s ease-out;
}

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

.demohelper-countdown-bar.hidden {
    transform: translateY(100%);
    opacity: 0;
}

.demohelper-countdown-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.demohelper-countdown-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
}

.countdown-icon {
    font-size: 24px;
    animation: demohelperPulse 2s ease-in-out infinite;
}

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

.countdown-message {
    white-space: nowrap;
}

.countdown-timer {
    font-size: 20px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.countdown-timer.warning {
    background: #ff6b6b;
    animation: demohelperBlink 1s ease-in-out infinite;
}

@keyframes demohelperBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.demohelper-countdown-button {
    background: #ffffff;
    color: #667eea;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.demohelper-countdown-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.demohelper-countdown-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.demohelper-countdown-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .demohelper-countdown-bar {
        padding: 12px 15px;
    }
    
    .demohelper-countdown-content {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .demohelper-countdown-text {
        justify-content: center;
        font-size: 14px;
    }
    
    .countdown-timer {
        font-size: 18px;
        padding: 4px 12px;
    }
    
    .demohelper-countdown-button {
        width: 100%;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .demohelper-countdown-text {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .countdown-message {
        white-space: normal;
    }
}

/* Print media - hide the countdown bar when printing */
@media print {
    .demohelper-countdown-bar {
        display: none !important;
    }
}

