:root {
    --sidebar-width: 250px;
}

body {
    background-color: #f4f6f9;
}

#app-shell {
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    flex-shrink: 0;
    transition: margin-left 0.2s ease-in-out;
}

.sidebar .nav-link {
    border-radius: 0.375rem;
    padding: 0.6rem 0.8rem;
    opacity: 0.85;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.sidebar-brand {
    font-size: 1.1rem;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        z-index: 1040;
        margin-left: calc(-1 * var(--sidebar-width));
    }

    .sidebar.show {
        margin-left: 0;
    }
}

.stat-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease-in-out;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.badge-status-pending { background-color: #6c757d; }
.badge-status-active { background-color: #0d6efd; }
.badge-status-onhold { background-color: #fd7e14; }
.badge-status-completed { background-color: #198754; }
.badge-status-cancelled { background-color: #dc3545; }

.progress-thin {
    height: 6px;
}

.border-dashed {
    border: 1.5px dashed #ced4da !important;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #0d6efd 100%);
}

.auth-card {
    max-width: 420px;
    width: 100%;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* GIS Map Viewer (Phase 3) */
.map-shell {
    display: flex;
    height: calc(100vh - 180px);
    min-height: 480px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.layer-panel {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    padding: 0;
}

.layer-panel-section {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.layer-panel-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    margin-bottom: 0.6rem;
}

.layer-row {
    padding: 0.25rem 0;
}

#mapContainer {
    flex-grow: 1;
    position: relative;
    background: #e9ecef;
}

#mapContainer .ol-zoom {
    top: 0.5rem;
    left: 0.5rem;
}
