:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --light: #f8f9fa;
    --dark: #212529;
    --poli-color: #113790;
    --jadwal-color: #fc923a; 
    --penunjang-color: #17a2b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.hero-section {
    background: linear-gradient(135deg, var(--poli-color) 0%, #0a58ca 100%);
    color: white;
    padding: 3rem 0;
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* Warna khusus untuk poliklinik dan tabel */
.poli-header {
    background-color: var(--poli-color) !important;
    color: white !important;
    border: none;
}

.bg-penunjang {
    background-color: var(--penunjang-color) !important;
    color: white !important;
    border: none;
}

.table-jadwal th {
    background-color: var(--poli-color) !important;
    color: white !important;
    border-color: var(--poli-color) !important;
    font-weight: 600;
}

.table-jadwal td {
    border-color: #dee2e6 !important;
    font-weight: 500;
}

/* Tambahan untuk konsistensi warna */
.bg-poli {
    background-color: var(--poli-color) !important;
}

.bg-jadwal {
    background-color: var(--jadwal-color) !important;
}

/* Status Hari Ini */
.status-hari-ini .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

/* Highlight untuk hari ini di tabel */
.table-active {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.table-active td {
    font-weight: 600;
    
}

/* Icon styles */
.fas.fa-info-circle,
.fas.fa-moon,
.fas.fa-phone-alt,
.fas.fa-calendar-times {
    font-size: 0.9em;
}

.fa-stethoscope, .fa-x-ray {
    color: #fff;
}

/* Hero section date */
.hero-section .small {
    opacity: 0.9;
    font-size: 0.9rem;
}

.dokter-item {
    padding-bottom: 1.5rem;
}

.dokter-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0;
    padding-bottom: 0;
}

.dokter-info {
    font-size: 0.9rem;
}

.jadwal-praktek .table {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.jadwal-praktek .table th {
    padding: 0.5rem;
}

.jadwal-praktek .table td {
    padding: 0.5rem;
    vertical-align: middle;
}

.status-dokter .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

.badge.bg-info {
    background-color: var(--info) !important;
}

.dokter-on-call-list .border {
    border-left: 4px solid var(--info) !important;
}

/* Navbar Styles */
.navbar {
    background-color: var(--poli-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand, .nav-link {
    color: white !important;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.hospital-icon {
    margin-right: 10px;
}

/* Footer Styles */
.footer {
    background-color: #343a40;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--primary);
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 6px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
}

/* Table Styles */
.table th {
    background-color: var(--primary);
    color: white;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: white;
}

.whatsapp-btn i {
    font-size: 28px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .dokter-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dokter-info .mx-2 {
        display: none;
    }
    
    .jadwal-praktek .table {
        font-size: 0.8rem;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-btn i {
        font-size: 24px;
    }
}