/* VitalFlow - Custom Styles */
/* Minimal CSS - Tailwind handles most styling */

:root {
    --primary-50: #f0fdfa;
    --primary-500: #0d9488;
    --primary-600: #0a7669;
    --accent-500: #f87171;
    --dark: #1a2332;
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -2.5rem;
    left: 0;
    background: var(--primary-500);
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 9999;
    border-radius: 0 0 0.375rem 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--accent-500);
    outline-offset: 2px;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid var(--accent-500);
    outline-offset: 4px;
    border-radius: 0.25rem;
}

/* Form error states */
input.border-red-500,
textarea.border-red-500,
select.border-red-500 {
    border-color: #ef4444 !important;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Button disabled state */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Image loading optimization */
img {
    max-width: 100%;
    height: auto;
}

img[loading="lazy"] {
    background: #f3f4f6;
}

/* Cookie Consent Banner */
#cookieConsent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.98) 0%, rgba(10, 118, 105, 0.98) 100%);
    color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

#cookieConsent.show {
    transform: translateY(0);
}

#cookieConsent.hide {
    transform: translateY(100%);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1 1 300px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-text a {
    color: #ccfbf1;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.cookie-text a:hover {
    color: #ffffff;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #ffffff;
    color: #0d9488;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cookie-btn-accept:hover {
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-btn-decline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #cookieConsent {
        padding: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}

/* Print styles */
@media print {
    .skip-link,
    header,
    footer,
    nav,
    #cookieConsent {
        display: none;
    }
}
