/* Custom CSS for Labitory Website - Bootstrap Enhancement */

/* Import the dark mode CSS from the original application */
:root {
    --bs-primary-rgb: 13, 110, 253;
    --focus-color: #0d6efd;
    --focus-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    --focus-shadow-dark: 0 0 0 0.25rem rgba(66, 153, 225, 0.4);

    /* Design tokens matching the original application */
    --color-primary: #0d6efd;
    --color-primary-hover: #0b5ed7;
    --color-primary-active: #0a58ca;
    --color-success: #198754;
    --color-danger: #dc3545;
    --color-warning: #ffc107;
    --color-info: #0dcaf0;
}

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

/* Hero section enhancements */
.hero {
    padding-top: 76px; /* Account for fixed navbar */
    background: linear-gradient(135deg, var(--color-primary) 0%, #0b5ed7 100%);
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Feature cards styling */
.card .bi {
    transition: transform 0.2s ease-in-out;
}

.card:hover .bi {
    transform: scale(1.1);
}

/* Pricing cards - featured card styling */
.card.border-primary {
    position: relative;
    transform: scale(1.05);
}

.card.border-primary::before {
    content: "Most Popular";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 5px 20px;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Button enhancements */
.btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Navigation enhancements */
.navbar-brand img {
    transition: transform 0.2s ease-in-out;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Enhanced focus indicators for accessibility */
.nav-link:focus,
.btn:focus,
a:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
    box-shadow: var(--focus-shadow);
}

/* Footer styling */
footer {
    margin-top: auto;
}

footer h5.text-primary {
    color: var(--color-primary) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero .display-4 {
        font-size: 2.5rem;
    }

    .card.border-primary {
        transform: none;
    }

    .card.border-primary::before {
        display: none;
    }

    .d-flex.gap-3 {
        flex-direction: column;
    }

    .d-flex.gap-3 .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 60px;
    }

    .hero .display-4 {
        font-size: 2rem;
    }

    .navbar-brand img {
        height: 48px !important;
    }
}

/* Animation for elements coming into view */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Dark mode support (inherited from original application) */
[data-theme="dark"] {
    --bs-body-bg: #1a1a1a;
    --bs-body-color: #e9ecef;
    --bs-primary: #4299e1;
    --bs-secondary: #a0aec0;
    --bs-success: #38a169;
    --bs-danger: #e53e3e;
    --bs-warning: #d69e2e;
    --bs-info: #3182ce;
    --bs-light: #2d3748;
    --bs-dark: #f7fafc;
    --bs-border-color: #4a5568;
    --focus-color: #4299e1;
}

[data-theme="dark"] body {
    background-color: #1a1a1a !important;
    color: #e9ecef !important;
}

[data-theme="dark"] .navbar-dark.bg-primary {
    background-color: #2d3748 !important;
}

[data-theme="dark"] .card {
    background-color: #2d3748 !important;
    border-color: #495057 !important;
    color: #e9ecef !important;
}

[data-theme="dark"] .bg-light {
    background-color: #374151 !important;
}

[data-theme="dark"] .text-muted {
    color: #9ca3af !important;
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }

    .hero {
        padding-top: 0 !important;
        background: white !important;
        color: black !important;
    }

    .card {
        border: 1px solid #000 !important;
        break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid currentColor !important;
    }

    .btn {
        border: 2px solid currentColor !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .card:hover {
        transform: none !important;
    }

    .btn:hover {
        transform: none !important;
    }
}