/* 
    Sonora Quest Laboratories - Main Stylesheet
    Structured for maintainability and clarity.
*/

/* ==========================================================================
   1. CSS Variables (:root)
   ========================================================================== */
:root {
    --primary: #00d3f3;
    --secondary: #314158;
    --black: #000;
    --bg-subtle: #ecf5fb;
    --white: #ffffff;
    --text-gray: #4a4a4a;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --hover-shadow: 0 12px 30px rgba(49, 65, 88, 0.18);

    --font-main: "Poppins", sans-serif;
    --dark: #010e28;
}

/* ==========================================================================
   2. Base Styles
   ========================================================================== */

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

/* ==========================================================================
   3. UI Components
   ========================================================================== */

/* Dashboard Tabs Navigation */
.dashboard-tab {
    font-weight: 700;
    font-size: 15px;
    padding: 1.25rem 1.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.dashboard-tab.active {
    color: white;
    background: var(--dark);
    box-shadow: inset 0 -4px 0 var(--primary);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--primary);
}

/* Interactive Hover Lift Effect */
.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

/* Authentication Forms */
.auth-panel {
    background: var(--white);
    border: 1px solid #dde4ef;
    border-radius: 8px;
    padding: 16px;
    width: 100%;
}

.auth-input {
    width: 100%;
    border: 1px solid #d9dee7;
    border-radius: 6px;
    height: 44px;
    padding: 0 12px;
    color: var(--secondary);
    background: var(--white);
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 211, 243, 0.18);
}

.auth-btn {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    height: 46px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.auth-btn:hover {
    background: #00b8d6;
    border-color: #00b8d6;
}

.auth-outline-btn {
    width: 100%;
    border-radius: 6px;
    border: 2px solid var(--primary);
    background: var(--white);
    color: #059eb8;
    font-weight: 700;
    height: 46px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.auth-outline-btn:hover {
    background: var(--bg-subtle);
}

/* Section Titles with Accent */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary);
    background: var(--bg-subtle);
    display: inline-block;
    width: 100%;
    padding: 10px 15px;
    text-transform: uppercase;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    border-radius: 9999px;
}

/* Premium Header Interactions */
.dropdown-fancy-reveal {
    animation: dropdownReveal 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: top left;
}

@keyframes dropdownReveal {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.search-expand-enter {
    animation: searchExpand 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes searchExpand {
    from {
        width: 40px;
        opacity: 0;
    }

    to {
        width: 300px;
        opacity: 1;
    }
}

/* Footer & Other Large Layout Blocks */
.footer-main {
    background-color: var(--dark);
    background-image: radial-gradient(circle at center, #02143D 0%, var(--dark) 100%);
    color: var(--white);
}

/* ==========================================================================
   5. Animations & Effects
   ========================================================================== */

/* Global Cursor Pointer for Interactive Elements */
button,
[role="button"],
select,
input[type="checkbox"],
input[type="radio"],
input[type="submit"],
input[type="file"] {
    cursor: pointer !important;
}

@media (max-width: 1280px) {
    .dashboard-tab {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .dashboard-tab {
        font-size: 12px;
        padding: 14px 10px;
    }
}