:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo span {
    color: var(--primary);
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--light);
}

.btn-outline:hover {
    background: var(--glass);
    border-color: var(--primary);
}

.btn-login {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    margin-top: -60px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Pricing */
.pricing-section {
    padding: 100px 5%;
    text-align: center;
}

.pricing-section h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem 2rem;
    width: 350px;
    text-align: left;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card.popular {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.05);
}

.card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.price span {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 400;
}

.card ul {
    list-style: none;
    margin-bottom: 2.5rem;
}

.card ul li {
    margin-bottom: 1rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
}

.card ul li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    margin-right: 10px;
}

.card .btn {
    width: 100%;
    text-align: center;
}

/* Dashboard Forms & Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    color: var(--light);
}

.table th, .table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    color: var(--gray);
    font-weight: 600;
}

/* Modals */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--dark);
    padding: 2rem;
    border-radius: 16px;
    width: 500px;
    max-width: 90%;
    border: 1px solid var(--border);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: #cbd5e1; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select { 
    width: 100%; padding: 0.75rem; border-radius: 8px; border: 1px solid var(--border); 
    background: rgba(255,255,255,0.05); color: white; outline: none; 
}
.form-group select option { background: var(--dark); color: white; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.form-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2rem; }

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 20px;
}
.calendar-day {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-height: 120px;
    padding: 10px;
}
.calendar-day.header {
    min-height: auto;
    text-align: center;
    font-weight: 600;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px;
}
.appointment {
    background: rgba(99, 102, 241, 0.2);
    border-left: 3px solid var(--primary);
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 8px;
    cursor: pointer;
    transition: 0.2s;
}
.appointment:hover {
    background: rgba(99, 102, 241, 0.4);
}

/* Global Sidebar */
.sidebar { width: 250px; background: rgba(15,23,42,0.98); border-right: 1px solid var(--border); padding: 1.5rem 1rem; display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar-logo { font-size: 1.4rem; font-weight: 800; color: white; padding: 0.5rem 1rem 1.5rem; }
.sidebar-logo span { color: var(--primary); }
.sidebar nav { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.nav-link { color: #94a3b8; text-decoration: none; padding: 0.75rem 1rem; border-radius: 10px; transition: all 0.2s; font-size: 0.9rem; display: flex; align-items: center; gap: 0.75rem; font-weight: 500; }
.nav-link:hover { background: rgba(255,255,255,0.05); color: white; }
.nav-link.active { background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(168,85,247,0.1)); color: white; border: 1px solid rgba(99,102,241,0.3); }
.nav-section { font-size: 0.7rem; color: #475569; text-transform: uppercase; letter-spacing: 1px; padding: 0.75rem 1rem 0.25rem; margin-top: 0.5rem; }
.logout-link { color: #f87171 !important; border: 1px solid rgba(248,113,113,0.2) !important; text-align: center; justify-content: center; margin-top: auto; }
