/* Health Toast Notification Styles */

.health-toast-container {
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.health-toast {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: all;
    transform: translateX(-450px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.health-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.health-toast.hide {
    transform: translateX(-450px);
    opacity: 0;
}

.health-toast-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.health-toast-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.health-toast-content {
    flex: 1;
}

.health-toast-title {
    font-weight: 600;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.health-toast-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

.health-toast-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
    border-radius: 6px;
    flex-shrink: 0;
}

.health-toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

/* Countdown specific styles */
.health-toast-countdown {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.health-toast-timer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.health-toast-timer-number {
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Orbitron', monospace;
    min-width: 50px;
    text-align: center;
}

.health-toast-timer-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.health-toast-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.health-toast-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
    border-radius: 2px;
    transition: width 0.3s linear;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

/* Eye strain specific (blue theme) */
.health-toast.eye-strain .health-toast-progress-bar {
    background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

/* Posture specific (yellow theme) */
.health-toast.posture {
    border-left: 3px solid #fbbf24;
}

/* Hydration specific (blue theme) */
.health-toast.hydration {
    border-left: 3px solid #06b6d4;
}

/* Eye strain specific (indigo theme) */
.health-toast.eye-strain {
    border-left: 3px solid #6366f1;
}

/* Pulse animation for important notifications */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                    0 2px 8px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                    0 2px 8px rgba(0, 0, 0, 0.1),
                    0 0 20px rgba(99, 102, 241, 0.3);
    }
}

.health-toast.pulse {
    animation: pulse-glow 2s ease-in-out;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .health-toast-container {
        top: 60px;
        left: 10px;
        right: 10px;
    }
    
    .health-toast {
        min-width: auto;
        max-width: none;
    }
    
    .health-toast-timer-number {
        font-size: 28px;
    }
}

/* Accessibility */
.health-toast:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    .health-toast {
        background: rgba(30, 30, 30, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .health-toast {
        transition: opacity 0.2s ease;
    }
    
    .health-toast.show {
        transform: none;
    }
    
    .health-toast.pulse {
        animation: none;
    }
}
