/* Global Styles */
:root {
    --primary-color: #1a5276;
    --secondary-color: #f8f9fa;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --border-radius: 0.5rem;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #f5f7fa;
}

/* Header Styles */
.header {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 2rem;
}

.logo {
    display: inline-block;
    padding: 0.5rem 0;
    font-weight: bold;
}

.brand-name {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.dominate-text {
    color: #000;
}

.q-text {
    color: #800000; /* Maroon color */
}

.department-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-color);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
}

.user-name {
    font-weight: bold;
    font-size: 1rem;
}

.user-role {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Card Styles */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: none;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Stat Card Styles */
.stat-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.stat-info p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Map Styles */
.map-card {
    height: calc(100% - 1.5rem);
}

#map {
    border-radius: calc(var(--border-radius) - 2px);
}

/* Branch List Styles */
.branch-list-card {
    height: calc(100% - 1.5rem);
}

.branch-list {
    max-height: 500px;
    overflow-y: auto;
}

.branch-item {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.branch-item:hover {
    background-color: #f8f9fa;
}

.branch-item:last-child {
    border-bottom: none;
}

.branch-name {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.branch-location {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.branch-metrics {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.branch-agents, .branch-wait-time {
    display: flex;
    align-items: center;
}

.branch-agents i, .branch-wait-time i {
    margin-right: 0.3rem;
    color: var(--primary-color);
}

/* Performance Indicators */
.performance-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.performance-good {
    background-color: var(--success-color);
}

.performance-average {
    background-color: var(--warning-color);
}

.performance-poor {
    background-color: var(--danger-color);
}

/* Branch Detail Page Styles */
.branch-header-card {
    background-color: var(--primary-color);
    color: white;
}

.branch-header-card h2 {
    margin-bottom: 0.3rem;
}

.branch-header-card p {
    margin-bottom: 0;
}

.branch-header-card .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.metric-card {
    height: 100%;
}

.metric-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.metric-info h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.metric-info p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Agent List Styles */
.agent-list-card {
    margin-bottom: 2rem;
}

.table th {
    font-weight: 600;
    color: var(--primary-color);
}

.agent-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-active {
    background-color: var(--success-color);
}

.status-inactive {
    background-color: var(--danger-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stat-card, .metric-card {
        margin-bottom: 1rem;
    }
    
    .map-card, .branch-list-card {
        height: auto;
    }
    
    #map {
        height: 400px !important;
    }
    
    .branch-list {
        max-height: 300px;
    }
}
