/* Custom Styles for OneHealth Website - Updated Color Scheme */

/* Import Noto Sans Font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* Updated Color Variables - Dark Yellow & Green Scheme */
:root {
    --saffron: #FF9933;
    --saffron-light: #FFB366;
    --saffron-dark: #E6851A;
    --white: #FFFFFF;
    --green: #138808;
    --green-light: #16A085;
    --green-dark: #0F6B06;
    
    /* New Primary Colors - Dark Yellow & Green */
    --primary-yellow: #B8860B;  /* Dark Golden Rod */
    --primary-green: #006400;   /* Dark Green */
    --primary-yellow-light: #DAA520; /* Golden Rod */
    --primary-green-light: #228B22;  /* Forest Green */
    
    --navy-blue: #000080;
    --ash-gray: #6B7280;
    --light-gray: #F3F4F6;
    --dark-gray: #374151;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

/* TRICOLOR NAVIGATION ONLY - WITH BLENDING */
.tricolor-nav {
    background: linear-gradient(90deg, 
        var(--saffron) 0%, 
        var(--white) 50%, 
        var(--green) 100%);
}

/* Accessibility Styles */
.high-contrast {
    background: #000 !important;
    color: #fff !important;
}

.high-contrast a {
    color: #ffff00 !important;
}

.high-contrast button {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #fff !important;
}

/* Focus States for Accessibility - Using Dark Yellow */
*:focus {
    outline: 3px solid var(--primary-yellow);
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-green);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Button Hover Effects */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Logo Container for White Background */
.logo-container {
    background: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 8px;
}

.footer-logo-container {
    background: var(--white);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    margin: 0 16px;
}

/* Carousel Styles */
.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.slide-dot.active {
    opacity: 1 !important;
    background-color: var(--primary-yellow) !important;
}

/* Table Responsive Styles */
@media (max-width: 768px) {
    .overflow-x-auto {
        font-size: 0.875rem;
    }
    
    table th,
    table td {
        padding: 0.5rem !important;
    }
    
    .logo-container {
        padding: 6px 12px;
        margin: 0 4px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Loading Spinner - Updated to Dark Yellow */
.loading-spinner {
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-yellow);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    header, footer, nav, .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Video Responsive */
video {
    max-width: 100%;
    height: auto;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

/* Form Styles - Updated to Dark Yellow */
input, textarea, select {
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

/* Error States */
.error {
    color: #DC2626;
    border-color: #DC2626;
}

/* Success States - Updated to Dark Green */
.success {
    color: var(--primary-green);
    border-color: var(--primary-green);
}

/* Custom Button Styles - Updated Colors */
.btn-primary {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-yellow-light);
    border-color: var(--primary-yellow-light);
}

.btn-secondary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-green-light);
    border-color: var(--primary-green-light);
}

.btn-outline-primary {
    color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-yellow);
    color: var(--white);
}

.btn-outline-secondary {
    color: var(--primary-green);
    border-color: var(--primary-green);
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* Card Styles - Updated Colors */
.card-primary {
    border-top: 4px solid var(--primary-yellow);
}

.card-secondary {
    border-top: 4px solid var(--primary-green);
}

/* Alert/Badge Styles - Updated Colors */
.badge-primary {
    background-color: var(--primary-yellow);
    color: var(--white);
}

.badge-secondary {
    background-color: var(--primary-green);
    color: var(--white);
}

.alert-primary {
    background-color: rgba(184, 134, 11, 0.1);
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.alert-secondary {
    background-color: rgba(0, 100, 0, 0.1);
    border-color: var(--primary-green);
    color: var(--primary-green);
}

/* Text Colors */
.text-primary {
    color: var(--primary-yellow) !important;
}

.text-secondary {
    color: var(--primary-green) !important;
}

/* Background Colors */
.bg-primary {
    background-color: var(--primary-yellow) !important;
}

.bg-secondary {
    background-color: var(--primary-green) !important;
}

.bg-primary-light {
    background-color: rgba(184, 134, 11, 0.1) !important;
}

.bg-secondary-light {
    background-color: rgba(0, 100, 0, 0.1) !important;
}

/* Border Colors */
.border-primary {
    border-color: var(--primary-yellow) !important;
}

.border-secondary {
    border-color: var(--primary-green) !important;
}

/* Hover Effects */
.hover-primary:hover {
    color: var(--primary-yellow) !important;
    transition: color 0.3s ease;
}

.hover-secondary:hover {
    color: var(--primary-green) !important;
    transition: color 0.3s ease;
}
