/* ===== Frontend CSS - PCMS ===== */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #1a1a2e;
    --accent: #f72585;
    --success: #06d6a0;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a3e 40%, #24243e 100%);
    padding: 9px 0;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
}
.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(67,97,238,0.08) 50%, transparent 100%);
    pointer-events: none;
}
.top-bar-inner {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 1;
}
.tb-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    margin: 0 8px;
}
.tb-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 14px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.25s ease;
    font-weight: 400;
    white-space: nowrap;
}
a.tb-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.tb-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(67,97,238,0.2);
    color: rgba(255,255,255,0.85);
    font-size: 0.6rem;
    flex-shrink: 0;
}
.tb-text {
    letter-spacing: 0.02em;
}
.tb-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(67,97,238,0.5);
    display: inline-block;
    margin: 0 4px;
}
.tb-highlight {
    background: linear-gradient(135deg, var(--primary), #5e7bf9);
    color: #fff !important;
    font-weight: 500;
    padding: 5px 16px;
    box-shadow: 0 2px 12px rgba(67,97,238,0.3);
}
a.tb-highlight:hover {
    background: linear-gradient(135deg, #5271f0, #7b8ff7);
    box-shadow: 0 4px 18px rgba(67,97,238,0.45);
    transform: translateY(-1px);
}
.tb-login {
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8) !important;
}
a.tb-login:hover {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    color: #fff !important;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%) !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    padding: 12px 0;
}
.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}
.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px !important;
    transition: all 0.3s;
}
.nav-link:hover {
    transform: translateY(-1px);
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: white;
    transform: skewY(-3deg);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    padding: 50px 0;
}

/* Service Cards */
.service-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-radius: 12px;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(67,97,238,0.15);
}
.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Doctor Cards */
.doctor-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-radius: 12px;
}
.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(67,97,238,0.15);
}

/* Department Cards */
.dept-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border-radius: 10px;
}
.dept-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(67,97,238,0.12);
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

/* Footer */
.site-footer {
    background: var(--secondary);
    padding: 60px 0 30px;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: white;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border-radius: 10px;
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67,97,238,0.15);
}
.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #555;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 8px;
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    border-radius: 8px;
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Tables */
.table th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}
.table td {
    vertical-align: middle;
    font-size: 0.875rem;
}

/* Badges */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 6px;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
}

/* Nav tabs */
.nav-tabs .nav-link {
    color: #555;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
}
.nav-tabs .nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

/* Upcoming Doctor Cards */
.upcoming-doctor-card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-radius: 14px;
    transition: all 0.3s ease;
    background: #fff;
}
.upcoming-doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(67,97,238,0.15);
}
.upcoming-stat {
    background: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.04);
}
.min-width-0 {
    min-width: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section { padding: 50px 0 70px; }
    .hero-section h1 { font-size: 2rem; }
    .page-header { padding: 30px 0; }
    .page-header h1 { font-size: 1.5rem; }
}
