
/* Custom Tailwind CSS Styles */
:root {
    --lab-primary: #00e5ee; /* Light Cyan */
    --lab-secondary: #ff6d00; /* Deep Orange */
    --lab-light: #e0fcff; /* Lighter Cyan */
    --lab-gray: #64748b;
}

/* Utility classes for new color scheme */
.bg-primary { background-color: var(--lab-primary) !important; }
.bg-secondary { background-color: var(--lab-secondary) !important; }
.text-primary { color: var(--lab-primary) !important; }
.text-secondary { color: var(--lab-secondary) !important; }
.border-primary { border-color: var(--lab-primary) !important; }
.border-secondary { border-color: var(--lab-secondary) !important; }

/* Banner Styles */
.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-dot.active {
    background-color: var(--lab-secondary) !important;
    transform: scale(1.25);
}

/* Tab Styles */
.tab-button {
    background: transparent;
    color: #6b7280;
}

.tab-button.active {
    background: var(--lab-light);
    color: var(--lab-secondary);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hover Effects */
.hover-scale:hover {
    transform: scale(1.05);
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* Mobile Menu */
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 40;
    animation: slideDown 0.3s ease-out;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

#mobile-menu.hidden {
    display: none !important;
}

#mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

#mobile-menu a:hover {
    background-color: #f9fafb;
    color: #2563eb;
}

#mobile-menu a:last-child {
    border-bottom: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu button improvements */
#mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

#mobile-menu-button:hover {
    background-color: #f3f4f6;
}

#mobile-menu-button:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Ensure mobile menu is properly positioned on mobile devices */
@media (max-width: 767px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
    }
    
    #mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
    }
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--lab-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .fixed {
        position: static !important;
    }
    
    .bg-gradient-to-br,
    .bg-gradient-to-b {
        background: white !important;
    }
}
