* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family:
        Inter,
        Arial,
        sans-serif;
    background: #f3f4f6;
    color: #172033;
}

body {
    overflow: hidden;
}

.app-header {
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: #10243e;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.app-header h1 {
    margin: 0;
    font-size: 22px;
}

.app-header span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    opacity: 0.75;
}

.app-container {
    display: flex;
    width: 100%;
    height: calc(100vh - 72px);
}

.sidebar {
    width: 280px;
    padding: 22px;
    background: #ffffff;
    border-right: 1px solid #dfe4ea;
    z-index: 2;
}

.sidebar h2 {
    margin: 0 0 20px;
    font-size: 17px;
}

.layer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e2e7ed;
    border-radius: 8px;
    cursor: pointer;
}

.layer-item:hover {
    background: #f6f8fa;
}

.status-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 24px;
    padding: 14px;
    font-size: 13px;
    background: #eef4f8;
    border-radius: 8px;
}

.status-box span {
    color: #506174;
}

#map {
    flex: 1;
    height: 100%;
}

.maplibregl-popup-content {
    min-width: 220px;
    border-radius: 8px;
}

.popup-title {
    margin: 0 0 10px;
    font-size: 16px;
}

.popup-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #edf0f2;
    font-size: 13px;
}

.popup-row:last-child {
    border-bottom: none;
}

.popup-label {
    color: #667587;
}

@media (max-width: 720px) {
    .sidebar {
        position: absolute;
        left: 10px;
        top: 82px;
        width: 230px;
        max-height: calc(100vh - 100px);
        border: 1px solid #dfe4ea;
        border-radius: 10px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
}
