/*
 * ProSpine Admin Portal - Material Design 3 Design System
 * Version: 3.0 (Premium Material Theme)
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* MD3 Light Palette - Modern Emerald/Teal Theme */
    --md-sys-color-primary: #006d44;
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-primary-container: #93f7be;
    --md-sys-color-on-primary-container: #002111;
    --md-sys-color-secondary: #4f6354;
    --md-sys-color-on-secondary: #ffffff;
    --md-sys-color-secondary-container: #d1e8d5;
    --md-sys-color-on-secondary-container: #0c1f13;
    --md-sys-color-surface: #f7fbf2;
    --md-sys-color-on-surface: #191c1a;
    --md-sys-color-surface-variant: #dce5dd;
    --md-sys-color-on-surface-variant: #404943;
    --md-sys-color-outline: #707973;
    --md-sys-color-background: #f7fbf2;
    
    /* Custom Tokens */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    --font-main: 'Outfit', sans-serif;
    --transition-standard: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--md-sys-color-background);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(147, 247, 190, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 109, 68, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--md-sys-color-on-surface);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Premium Background Overlay --- */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('../images/modern_clinic_background.png') center/cover no-repeat;
    opacity: 0.15;
    filter: blur(5px);
}

/* --- Header --- */
header {
    padding: 1rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* --- Main Layout --- */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-section h1 span {
    color: var(--md-sys-color-primary);
    position: relative;
    display: inline-block;
}

.hero-section p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--md-sys-color-on-surface-variant);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* --- Card Grid --- */
.card-row {
    width: 100%;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.card {
    background: var(--md-sys-color-surface);
    border-radius: 28px; /* MD3 card radius */
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--md-sys-color-surface-variant);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-standard);
    text-align: center;
    animation: fadeInUp 0.8s 0.2s ease-out backwards;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--md-sys-color-primary);
    opacity: 0;
    transition: var(--transition-standard);
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--md-sys-color-primary-container);
}

.card:hover::before {
    opacity: 1;
}

.card-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 1rem;
}

.card-content p {
    font-size: 1.1rem;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 2.5rem;
}

/* --- Action Button --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px; /* MD3 fab/button style */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 109, 68, 0.2);
    transition: var(--transition-standard);
}

.btn:hover {
    background-color: #005635;
    box-shadow: 0 8px 24px rgba(0, 109, 68, 0.3);
    transform: scale(1.05);
}

.btn i {
    transition: var(--transition-standard);
}

.btn:hover i {
    transform: translateX(6px);
}

/* --- Footer --- */
footer {
    padding: 2.5rem;
    text-align: center;
    background: transparent;
}

footer p {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
}

/* --- Responsive Helpers --- */
@media (max-width: 768px) {
    .main-container {
        padding: 2rem 1rem;
    }
    
    .card {
        padding: 2rem;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
