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

:root {
    /* Novyra Healthcare Brand Identity */
    --primary: #0284c7; /* Brand Sky Blue */
    --primary-light: #38bdf8;
    --primary-dark: #0369a1;
    --accent: #22d3ee; /* Cyan from logo top */
    --accent-dark: #004e92; /* Deep blue from logo bottom */
    
    /* Neutral colors */
    --bg-page: #f8fafc; 
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Text colors */
    --text-lead: #0f172a;
    --text-main: #334155;
    --text-muted: #64748b;
    --text-on-primary: #ffffff;
    
    /* Specialized Gradients */
    --grad-primary: linear-gradient(135deg, var(--accent) 0%, var(--primary) 50%, var(--accent-dark) 100%);
    --grad-surface: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

    /* Spacing & Sizing */
    --sidebar-width: 280px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-lead);
    font-weight: 700;
}

a {
    transition: all 0.2s ease;
    text-decoration: none;
}

/* Helper Classes */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--text-on-primary);
    border: none;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-dark) 100%);
}

.btn-pill {
    border-radius: 9999px;
}

/* Utility */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.m-auto { margin: auto; }

/* Login Page Layout - Ultra Minimalist */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f6f6f6;
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: white;
    border-radius: 28px;
    padding: 3rem 2.5rem 2rem;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.08);
    position: relative;
    text-align: center;
}

.logo-circle {
    width: 64px;
    height: 64px;
    background: var(--grad-primary);
    border-radius: 999px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.2);
    position: relative;
    z-index: 2;
}

.logo-grid {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    background-image: radial-gradient(var(--accent) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.15;
    mask-image: radial-gradient(circle, black, transparent 70%);
}

.auth-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.social-grid {
    display: flex;
    gap: 0.75rem;
    margin: 2rem 0;
}

.social-btn {
    flex: 1;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.social-btn:hover {
    background: #f8fafc;
    border-color: var(--primary-light);
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.divider span {
    padding: 0 1rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fcfcfd;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Sidebar & Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-light);
    z-index: 100;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.sidebar-nav {
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.nav-link:hover {
    background: #eff6ff;
    color: var(--primary);
}

.nav-link.active {
    background: var(--primary);
    color: white;
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-bar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 90;
}

.page-body {
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 100%;
        --header-height: 70px;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 300px !important;
        transition: transform 0.3s ease;
        box-shadow: 20px 0 50px rgba(0,0,0,0.1);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        width: 100%;
    }

    .top-bar {
        padding: 0 1.25rem;
    }

    #mobile-toggle {
        display: flex !important;
    }

    .page-body {
        padding: 1.25rem;
    }

    /* Grid stacking */
    div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
    }

    .auth-card {
        padding: 2.5rem 1.5rem;
        margin: 1rem;
    }
}

#mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    margin-right: 1rem;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}
