/* Province Page Specific Styles */
.province-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 100%);
    position: relative;
    overflow: hidden;
}

.province-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.05)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

.stat-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Quick Navigation */
.quick-nav {
    border-bottom: 1px solid #e2e8f0;
}

.district-nav .btn {
    transition: all 0.3s ease;
    border-radius: 20px;
}

.district-nav .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Schedule Items */
.schedule-day-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.day-header {
    background: linear-gradient(90deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 2px solid var(--primary-color);
}

.schedule-item {
    transition: all 0.3s ease;
    position: relative;
}

.schedule-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.schedule-item:hover::before {
    opacity: 1;
}

.schedule-item:hover {
    background: #f8fafc !important;
    padding-left: 2rem !important;
}

.time-badge .badge {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* District Cards */
.district-card .card {
    border-radius: 16px;
    transition: all 0.3s ease;
    height: 100%;
}

.district-card:hover .card {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.district-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    border-radius: 50%;
    color: white;
}

/* Filter Controls */
.filter-controls .btn-group .btn {
    border-radius: 20px 0 0 20px;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.filter-controls .btn-group .btn:last-child {
    border-radius: 0 20px 20px 0;
}

.filter-controls .btn-group .btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* No Data State */
.no-data-state {
    min-height: 400px;
    display: flex;
    align-items: center;
}

.no-data-content {
    padding: 3rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Breadcrumb */
.breadcrumb-section {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #64748b;
    font-weight: bold;
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Related Provinces */
.related-provinces .btn {
    border-radius: 20px;
    transition: all 0.3s ease;
}

.related-provinces .btn:hover {
    transform: translateY(-2px);
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Modal Enhancements */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px 16px 0 0;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .province-hero {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-stats .col-6 {
        margin-bottom: 1rem;
    }
    
    .quick-nav {
        padding: 1rem 0;
    }
    
    .district-nav .row {
        margin: 0;
    }
    
    .filter-controls {
        margin-top: 1rem;
    }
    
    .filter-controls .btn-group {
        width: 100%;
        display: flex;
    }
    
    .filter-controls .btn {
        flex: 1;
        font-size: 0.875rem;
        padding: 0.5rem 0.25rem;
    }
    
    .schedule-item {
        padding: 1rem !important;
    }
    
    .schedule-item .row > div {
        margin-bottom: 1rem;
    }
    
    .time-badge {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-stats .col-6 {
        flex: 0 0 50%;
    }
    
    .district-nav .col-6 {
        margin-bottom: 0.5rem;
    }
    
    .schedule-item:hover {
        padding-left: 1rem !important;
    }
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .breadcrumb-section,
    .quick-nav,
    .filter-controls,
    .related-provinces,
    .districts-section {
        display: none !important;
    }
    
    .schedule-item {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .province-hero {
        background: white !important;
        color: black !important;
    }
}
/* Other Districts Section */
.other-districts {
    background: #f8fafc;
}

.other-districts .district-card {
    transition: all 0.3s ease;
}

.other-districts .district-card:hover {
    transform: translateY(-5px);
}

.other-districts .district-card .card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.other-districts .district-card:hover .card {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Quick Navigation Enhancement */
.quick-nav .district-nav .btn-outline-secondary {
    border-color: #e2e8f0;
    color: #64748b;
    transition: all 0.3s ease;
}

.quick-nav .district-nav .btn-outline-secondary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
    color: white;
    transform: translateY(-1px);
}

/* Modal Enhancements for Districts */
.modal-body .btn-outline-primary {
    transition: all 0.3s ease;
    text-align: left;
    padding: 0.75rem 1rem;
}

.modal-body .btn-outline-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
    color: white;
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quick-nav .district-nav .col-6 {
        margin-bottom: 0.5rem;
    }
    
    .other-districts .col-sm-6 {
        margin-bottom: 1rem;
    }
    
    .quick-nav .row {
        text-align: center;
    }
    
    .quick-nav .col-md-3 h6 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .quick-nav .district-nav .btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.25rem;
    }
    
    .other-districts .district-card .card-body {
        padding: 1rem;
    }
}
