/* 
   PREMIUM 8K MEDICAL DESIGN SYSTEM
   Inspired by jenifer.html
*/

:root {
    --primary-gradient: linear-gradient(135deg, #4f8edc, #2f6fb8);
    --sidebar-gradient: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(236, 245, 252, .9), rgba(220, 235, 247, .75));
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-premium: 0 35px 80px rgba(0, 0, 0, .15);
    --shadow-card: 0 25px 60px rgba(0, 0, 0, .18);
    --medical-blue: #1f3b5b;
    --medical-gray: #5b6b7c;
}

/* Base Body Styles */
.premium-body {
    background: radial-gradient(circle at top, #f7fbff, #edf3fa, #e6eef7);
    color: #1f2937;
    font-family: 'Plus Jakarta Sans', "Segoe UI", sans-serif;
    min-height: 100vh;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sidebar Styling Overrides */
.sidebar-premium {
    background: var(--sidebar-gradient) !important;
    backdrop-filter: blur(16px);
    box-shadow: 14px 0 40px rgba(0, 0, 0, .1);
    border-right: none !important;
    animation: fadeLeft .9s ease forwards;
}

/* Premium Hero Card */
.hero-card-premium {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background-size: cover;
    background-position: right center;
    box-shadow: var(--shadow-premium);
    animation: fadeUp 1s ease forwards;
    transition: transform .8s;
    border: none;
}

.hero-card-premium:hover {
    transform: scale(1.015);
}

/* Med Card - Professional LMS Look */
.med-card-premium {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeUp 1.1s ease forwards;
    cursor: pointer;
    height: 100%;
}

.med-card-premium:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.22);
    background: rgba(255, 255, 255, 0.95);
}

/* Glass Inputs */
.glass-input {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 12px 18px;
    transition: 0.3s;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 10px 25px rgba(47, 111, 184, 0.15);
}

/* Premium Buttons */
.btn-premium {
    background: var(--primary-gradient);
    border: none;
    border-radius: 30px;
    padding: 12px 28px;
    color: white;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(47, 111, 184, .4);
    transition: 0.4s;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(47, 111, 184, .6);
    color: white;
}

/* --- NAV BAR PREMIUM INTEGRATION --- */
.navbar.bg-primary {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.navbar.navbar-dark .navbar-brand,
.navbar.navbar-dark .navbar-nav .nav-link,
.navbar.navbar-dark #navbar-user {
    color: #1e293b !important;
}

.navbar #navbar-title {
    color: #1e293b !important;
    font-weight: 800;
}

.navbar .text-white-50 {
    color: #64748b !important;
}

.navbar .btn-outline-light {
    border-color: #2f6fb8 !important;
    color: #2f6fb8 !important;
}

.navbar .btn-outline-light:hover {
    background: var(--primary-gradient) !important;
    color: white !important;
    border-color: transparent !important;
}

/* ==========================================================================
   AIRA PREMIUM LOADER (LOGO + ORBIT CIRCLES)
   ========================================================================== */

.aira-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
    visibility: visible;
    opacity: 1;
}

.aira-loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-brand-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    z-index: 10;
    filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.3));
    animation: loaderLogoPulse 2s infinite ease-in-out;
}

/* Círculos Rotatorios (Órbitas) */
.loader-orbit {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #2563eb;
    animation: loaderOrbitRotate 3s infinite linear;
}

.loader-orbit.outer {
    width: 160px;
    height: 160px;
    border-top-color: rgba(37, 99, 235, 0.6);
    animation-duration: 4s;
}

.loader-orbit.middle {
    width: 130px;
    height: 130px;
    border-top-color: #2563eb;
    animation-duration: 2.5s;
    animation-direction: reverse;
}

.loader-orbit.inner {
    width: 100px;
    height: 100px;
    border-top-color: #60a5fa;
    animation-duration: 1.5s;
}

.loader-text {
    margin-top: 40px;
    font-size: 15px;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-align: center;
    animation: loaderTextGlow 2s infinite ease-in-out;
}

@keyframes loaderLogoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.3)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 25px rgba(37, 99, 235, 0.6)); }
}

@keyframes loaderOrbitRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loaderTextGlow {
    0%, 100% { opacity: 0.5; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
}