/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}
*/
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 1rem;
}
/*
header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}
*/
h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.last-update {
    font-size: 0.9rem;
    color: #666;
}

.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-item {
    background: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5aa0;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

.incidents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.incident-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e0e0e0;
}

.incident-card.gas {
    border-left-color: #23f5d9;
}

.incident-card.cold-water {
    border-left-color: #4a90d9;
}

.incident-card.hot-water {
    border-left-color: #d9704a;
}

.incident-card.heat {
    border-left-color: #d0021b;
}

.incident-card.electricity {
    border-left-color: #f8e71c;
}

.incident-card.water-sewerage {
    border-left-color: #9e4903;
}

.incident-card.lift {
    border-left-color: #6af363;
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.incident-address {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.incident-resource {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.incident-resource.gas {
    background: #23f5d9;
    color: #4a7c76;
}

.incident-resource.cold-water {
    background: #a2caf5;
    color: #096dd9;
}
.incident-resource.hot-water {
    background: #f6b4ad;
    color: #5e4341;
}

.incident-resource.heat {
    background: #f49aa5;
    color: #d9363e;
}

.incident-resource.electricity {
    background: #f6f0ac;
    color: #d4b106;
}
.incident-resource.water-sewerage {
    background: #eac5a6;
    color: #716053;
}
.incident-resource.lift {
    background: #ccf6c9;
    color: #4f604e;
}

.incident-description {
    color: #444;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.incident-footer {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

.incident-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.incident-department {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #fffbe6;
    color: #d4b106;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Loader */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    margin-top: 20px;
    color: #666;
    font-size: 0.95rem;
}

/* Error message */
.error-message {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.error-message span {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.error-message p {
    color: #666;
    margin-bottom: 20px;
}

.error-message button {
    background: #2c5aa0;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.error-message button:hover {
    background: #1a4480;
}

@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    h1 {
        font-size: 1.4rem;
    }

    .stats {
        flex-direction: column;
        gap: 10px;
    }

    .stat-item {
        padding: 12px 18px;
    }

    .incident-header {
        flex-direction: column;
    }

    .incident-footer {
        flex-direction: column;
        gap: 8px;
    }

    .incident-card {
        padding: 15px;
    }
}

@media print {
    body {
        background: #fff;
        padding: 0;
    }

    .incident-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}