/* ===== Global Styles ===== */
:root {
    --primary: #0d6efd;
    --success: #198754;
    --warning: #ffc107;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #0847a8 100%);
    min-height: 320px;
    display: flex;
    align-items: center;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    min-width: 90px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ===== Page Header ===== */
.page-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* ===== Cards ===== */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doctor-card:hover,
.service-card:hover,
.test-card:hover,
.package-card:hover,
.medicine-card:hover,
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* ===== Speciality Cards ===== */
.speciality-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}
.speciality-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

/* ===== Nav Tabs ===== */
.nav-tabs-custom {
    border-bottom: 2px solid #dee2e6;
}
.nav-tabs-custom .nav-link {
    color: #6c757d;
    font-weight: 500;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 20px;
    border-radius: 0;
    transition: all 0.2s;
    background: transparent;
}
.nav-tabs-custom .nav-link:hover {
    color: #212529;
    border-bottom-color: #dee2e6;
}
.nav-tabs-custom .nav-link.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    background: transparent;
}

/* ===== Product Cards ===== */
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
}
.product-card .card-body {
    display: flex;
    flex-direction: column;
}

/* ===== Upload Area ===== */
.upload-area {
    cursor: pointer;
    transition: background-color 0.2s;
}
.upload-area:hover {
    background-color: #fff8e1 !important;
}

/* ===== Navbar ===== */
.navbar-brand {
    font-size: 1.3rem;
}

/* ===== Footer ===== */
footer a:hover {
    color: #17a2b8 !important;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #adb5bd; border-radius: 3px; }

/* ===== Button Overrides ===== */
.btn-warning {
    color: #212529 !important;
}
.btn-outline-warning {
    color: #856404;
}
.btn-outline-warning:hover {
    color: #212529 !important;
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
    .hero-section { min-height: auto; }
    .stat-card { min-width: 70px; }
}

/* ===== Badges ===== */
.badge {
    font-weight: 500;
}

/* ===== Form Enhancements ===== */
.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

.input-group-text {
    min-width: 42px;
    justify-content: center;
}

/* ===== Alert ===== */
.alert {
    border: none;
}
