﻿
.monitor-container {
    padding: 1rem;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.header-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border-top: 4px solid;
    transition: transform 0.2s;
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    }

    .stat-card.working {
        border-top-color: #28a745;
    }

    .stat-card.traveling {
        border-top-color: #17a2b8;
    }

    .stat-card.pending {
        border-top-color: #ffc107;
    }

    .stat-card.critical {
        border-top-color: #dc3545;
    }

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dispatch-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.critical-alert {
    background: #fff5f5;
    border-left: 4px solid #dc3545;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.9;
    }
}

.tech-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

    .tech-card.available {
        border-left-color: #28a745;
    }

    .tech-card.working {
        border-left-color: #ffc107;
    }

    .tech-card.traveling {
        border-left-color: #17a2b8;
    }

.priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.priority-high {
    background: #ffebee;
    color: #c62828;
}

.priority-normal {
    background: #fff8e1;
    color: #f57c00;
}

.priority-anytime {
    background: #e8f5e9;
    color: #2e7d32;
}

.zone-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.zone-tab {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: white;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s;
}

    .zone-tab.active {
        background: #0d6efd;
        color: white;
        border-color: #0d6efd;
    }

    .zone-tab:hover:not(.active) {
        background: #e9ecef;
    }

.optimization-card {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.time-indicator {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.overdue {
    background: #ffebee;
    color: #c62828;
}

.due-soon {
    background: #fff8e1;
    color: #f57c00;
}

.on-time {
    background: #e8f5e9;
    color: #2e7d32;
}

.dispatch-table {
    width: 100%;
    border-collapse: collapse;
}

    .dispatch-table th {
        background: #f8f9fa;
        padding: 0.75rem;
        text-align: left;
        font-weight: 600;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .dispatch-table td {
        padding: 0.75rem;
        border-bottom: 1px solid #dee2e6;
    }

    .dispatch-table tr:hover {
        background: #f8f9fa;
    }

.tech-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-working {
    background: #ffc107;
}

.status-traveling {
    background: #17a2b8;
}

.status-available {
    background: #28a745;
}

.recommendation-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

