/* ===== VARIABLES ===== */
:root {
    --primary: #c9a96e;
    --primary-dark: #a8834a;
    --primary-light: #f5ede0;
    --secondary: #2d4a3e;
    --secondary-light: #3d6b5a;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --white: #ffffff;
    --light-bg: #faf8f5;
    --border: #e8e0d5;
}

/* ===== BASE ===== */
body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--text-dark); background: var(--white); }
a { text-decoration: none; }

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--secondary);
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    padding: 8px 0;
}

/* ===== NAVBAR ===== */
.clinic-navbar {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 14px 0;
}
.brand-icon { font-size: 1.8rem; color: var(--primary); }
.brand-name { font-size: 1.4rem; font-weight: 700; color: var(--text-dark); letter-spacing: -0.3px; }
.brand-accent { color: var(--primary); }
.clinic-navbar .nav-link { color: var(--text-dark) !important; font-weight: 500; padding: 6px 14px !important; border-radius: 6px; transition: all 0.2s; }
.clinic-navbar .nav-link:hover { color: var(--primary) !important; background: var(--primary-light); }

/* ===== BUTTONS ===== */
.btn-clinic-primary {
    background: var(--primary);
    color: var(--white) !important;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.btn-clinic-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(201,169,110,0.4); }
.btn-clinic-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
    transition: all 0.3s;
}
.btn-clinic-outline:hover { background: var(--primary); color: var(--white); }
.btn-secondary-green { background: var(--secondary); color: var(--white); border: none; padding: 10px 22px; border-radius: 50px; font-weight: 600; transition: all 0.3s; }
.btn-secondary-green:hover { background: var(--secondary-light); color: var(--white); }

/* ===== HERO ===== */
.hero-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a3329 100%);
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,169,110,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-badge { background: rgba(201,169,110,0.2); color: var(--primary); border: 1px solid rgba(201,169,110,0.4); padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; display: inline-block; margin-bottom: 20px; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 20px; }
.hero-title span { color: var(--primary); }
.hero-subtitle { color: rgba(255,255,255,0.75); font-size: 1.1rem; line-height: 1.7; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.hero-image-wrap { position: relative; }
.hero-image-wrap img { border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,0.4); width: 100%; max-width: 480px; }
.hero-badge-float {
    position: absolute;
    background: var(--white);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.hero-badge-float.left { bottom: 30px; left: -20px; }
.hero-badge-float.right { top: 30px; right: -20px; }
.float-icon { font-size: 1.5rem; color: var(--primary); }
.float-label { font-size: 0.7rem; color: var(--text-muted); }
.float-value { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); }

/* ===== SECTIONS ===== */
.section-badge { background: var(--primary-light); color: var(--primary-dark); padding: 5px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; display: inline-block; margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--text-dark); margin-bottom: 12px; }
.section-subtitle { color: var(--text-muted); font-size: 1rem; max-width: 560px; margin: 0 auto; }
.section-divider { width: 50px; height: 3px; background: var(--primary); border-radius: 2px; margin: 16px auto 0; }

/* ===== SERVICE CARDS ===== */
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.3s;
    height: 100%;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); border-color: var(--primary); }
.service-icon { width: 64px; height: 64px; background: var(--primary-light); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--primary); margin-bottom: 20px; }
.service-card h5 { font-weight: 700; font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }
.service-price { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.service-duration { font-size: 0.8rem; color: var(--text-muted); }

/* ===== DOCTOR CARDS ===== */
.doctor-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
    height: 100%;
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.doctor-card img { width: 100%; height: 260px; object-fit: cover; }
.doctor-card-body { padding: 22px; }
.doctor-card h5 { font-weight: 700; margin-bottom: 4px; }
.doctor-spec { color: var(--primary); font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; }
.doctor-exp { color: var(--text-muted); font-size: 0.85rem; }

/* ===== WHY US ===== */
.why-card { text-align: center; padding: 28px 20px; }
.why-icon { width: 72px; height: 72px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--white); margin: 0 auto 18px; }

/* ===== TESTIMONIALS ===== */
.testimonial-card { background: var(--white); border-radius: 16px; padding: 28px; border: 1px solid var(--border); }
.testimonial-stars { color: #ffc107; font-size: 1rem; margin-bottom: 12px; }
.testimonial-text { color: var(--text-muted); font-style: italic; line-height: 1.7; margin-bottom: 16px; }
.testimonial-author { font-weight: 700; font-size: 0.95rem; }

/* ===== CTA SECTION ===== */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }

/* ===== APPOINTMENT FORM ===== */
.appointment-section { background: var(--light-bg); }
.form-card { background: var(--white); border-radius: 20px; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.form-label { font-weight: 600; font-size: 0.9rem; color: var(--text-dark); margin-bottom: 6px; }
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(201,169,110,0.15); }
.info-card { background: var(--secondary); color: var(--white); border-radius: 16px; padding: 28px; }
.info-card h5 { color: var(--primary); font-weight: 700; margin-bottom: 16px; }
.info-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.info-item i { color: var(--primary); font-size: 1.1rem; margin-top: 2px; }
.info-item p { margin: 0; font-size: 0.9rem; color: rgba(255,255,255,0.85); }

/* ===== ADMIN ===== */
.admin-sidebar { background: var(--secondary); min-height: 100vh; padding: 0; }
.admin-brand { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-brand span { color: var(--white); font-weight: 700; font-size: 1.1rem; }
.admin-nav .nav-link { color: rgba(255,255,255,0.75) !important; padding: 12px 20px !important; border-radius: 0; font-size: 0.92rem; transition: all 0.2s; }
.admin-nav .nav-link:hover, .admin-nav .nav-link.active { color: var(--white) !important; background: rgba(201,169,110,0.2); border-left: 3px solid var(--primary); }
.admin-content { background: #f4f6f9; min-height: 100vh; padding: 30px; }
.stat-card { background: var(--white); border-radius: 14px; padding: 24px; border-left: 4px solid var(--primary); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.stat-card.green { border-left-color: #28a745; }
.stat-card.blue { border-left-color: #007bff; }
.stat-card.orange { border-left-color: #fd7e14; }
.stat-num { font-size: 2rem; font-weight: 800; }
.stat-label { color: var(--text-muted); font-size: 0.85rem; }
.admin-table { background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.admin-table table { margin: 0; }
.admin-table thead th { background: var(--secondary); color: var(--white); font-weight: 600; font-size: 0.85rem; padding: 14px 16px; border: none; }
.admin-table tbody td { padding: 14px 16px; vertical-align: middle; font-size: 0.9rem; border-color: var(--border); }
.badge-pending { background: #fff3cd; color: #856404; padding: 4px 10px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; }
.badge-confirmed { background: #d1e7dd; color: #0f5132; padding: 4px 10px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; }
.badge-completed { background: #cfe2ff; color: #084298; padding: 4px 10px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; }
.badge-cancelled { background: #f8d7da; color: #842029; padding: 4px 10px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; }
.login-card { max-width: 420px; margin: 80px auto; background: var(--white); border-radius: 20px; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); }

/* ===== PAGE HERO ===== */
.page-hero { background: linear-gradient(135deg, var(--secondary) 0%, #1a3329 100%); padding: 70px 0 50px; }
.page-hero h1 { color: var(--white); font-weight: 800; }
.page-hero p { color: rgba(255,255,255,0.7); }
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: rgba(255,255,255,0.6); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ===== FOOTER ===== */
.clinic-footer { background: var(--text-dark); padding: 60px 0 30px; }
.brand-icon-footer { font-size: 1.6rem; color: var(--primary); }
.footer-brand { color: var(--white); font-weight: 700; font-size: 1.2rem; }
.footer-text { color: rgba(255,255,255,0.55); font-size: 0.9rem; line-height: 1.7; }
.footer-heading { color: var(--white); font-weight: 700; margin-bottom: 16px; font-size: 0.95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; color: rgba(255,255,255,0.55); font-size: 0.88rem; }
.footer-links a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 30px 0 20px; }
.footer-copy { color: rgba(255,255,255,0.4); font-size: 0.85rem; }

/* ===== CONFIRMATION ===== */
.confirmation-card { max-width: 560px; margin: 80px auto; text-align: center; background: var(--white); border-radius: 20px; padding: 50px 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.check-circle { width: 90px; height: 90px; background: #d1e7dd; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #198754; margin: 0 auto 24px; }

/* ===== UTILITIES ===== */
.bg-light-clinic { background: var(--light-bg); }
.text-primary-clinic { color: var(--primary) !important; }
.rounded-xl { border-radius: 16px; }
