/* Regional Overview Page Styles */

.regional-overview-page {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding-top: 1rem;
}

/* Regional Cards */
.regional-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.regional-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.regional-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.regional-card .card-body {
    background: white;
}

/* Clickable Cards for Drill-down */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.clickable-card:hover {
    border-color: #6c757d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.clickable-card .card-body {
    padding: 1rem;
}

/* Comparison Section */
.comparison-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #495057;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
}

/* Hierarchy Visualization */
.hierarchy-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Metric Cards */
.metric-card {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #6c757d;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-left-color: #495057;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.metric-card h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.metric-card small {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Action Buttons */
.btn-outline-primary:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #6c757d;
    color: #495057;
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #6c757d;
    color: #495057;
}

/* Comparison Table */
.comparison-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comparison-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.comparison-table td {
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
}

.comparison-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Geographic Navigation */
.geo-nav-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.geo-nav-button {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    color: #495057;
    transition: all 0.3s ease;
}

.geo-nav-button:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #6c757d;
    transform: translateY(-1px);
}

.geo-nav-button:disabled {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .regional-overview-page {
        padding-top: 0.5rem;
    }
    
    .regional-card .card-body .row > .col {
        margin-bottom: 1rem;
    }
    
    .clickable-card {
        margin-bottom: 1rem;
    }
    
    .metric-card h5 {
        font-size: 1.25rem;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .geo-nav-section {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .regional-card .card-body .row {
        text-align: center;
    }
    
    .regional-card .card-body .col {
        margin-bottom: 1rem;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading States */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6c757d;
}

.loading-spinner .spinner-border {
    margin-right: 0.5rem;
}

/* Data Visualization Enhancements */
.plotly-graph-div {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-active {
    background-color: #28a745;
}

.status-inactive {
    background-color: #dc3545;
}

.status-pending {
    background-color: #ffc107;
}

/* Enhanced Card Hover Effects */
.enhanced-card {
    position: relative;
    overflow: hidden;
}

.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.enhanced-card:hover::before {
    left: 100%;
}
