/* ========================================
   Hospital Website - Global Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ========================================
   CSS Variables - Medical Color Palette
   ======================================== */

:root {
    --primary-blue: #1E40AF;
    --primary-green: #16A34A;
    --accent-red: #DC2626;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F0F9FF;
    --border-light: #E5E7EB;
}

/* ========================================
   Animations - Premium Medical Brand
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDelay {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(30, 64, 175, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(30, 64, 175, 0.4);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ========================================
   Utility Classes - Animations
   ======================================== */

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInDelay 0.8s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInDelay 0.8s ease-out 0.6s both;
}

.animate-slide-in-left {
    animation: slideInLeft 0.7s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.7s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.7s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-glow {
    animation: glow 3s ease-in-out infinite;
}

/* ========================================
   Hover Effects - Premium
   ======================================== */

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.15);
}

.hover-shadow:hover {
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.2);
}

.hover-gradient:hover {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(22, 163, 74, 0.1));
}

/* ========================================
   Form Styling - Medical Blue Theme
   ======================================== */

input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    border-color: var(--primary-blue);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    color: var(--primary-blue);
}

/* ========================================
   Card Styling - Premium Medical Design
   ======================================== */

.card {
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.15);
    transform: translateY(-6px);
}

/* ========================================
   Badge Styling
   ======================================== */

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: #16A34A;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
}

.badge-primary {
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ========================================
   Responsive Typography
   ======================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* ========================================
   Smooth Scrolling
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* ========================================
   Shadows & Elevations
   ======================================== */

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Transitions - Smooth & Professional
   ======================================== */

button,
a,
.transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover,
.hover-lift:hover {
    transform: translateY(-2px);
}

/* ========================================
   Background Gradients
   ======================================== */

.gradient-medical {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
}

.gradient-emergency {
    background: linear-gradient(135deg, #DC2626, #EF4444);
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    nav,
    footer,
    button {
        display: none;
    }
}
