body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}
.navbar-brand {
    font-weight: bold;
    color: #007bff !important;
}
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.card:hover {
    transform: translateY(-2px);
}
.parameter-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
}
.map-container {
    height: 100%;
    min-height: 400px;
    border-radius: 10px;
    overflow: hidden;
}
.weather-card {
    background: linear-gradient(135deg, #5a8dff 0%, #2f83ee 100%);
    color: white;
}
.footer {
    background-color: #343a40;
    color: #fff;
    padding: 30px 0;
    margin-top: 20px;
}
.threshold-warning {
    border-left: 4px solid #ffc107 !important;
}
.threshold-danger {
    border-left: 4px solid #dc3545 !important;
}
.chart-container {
    position: relative;
    height: 300px;
}

/* Monitoring Page Styles */
.parameter-card {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.parameter-card:hover {
    border-color: #007bff;
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.15) !important;
}

.parameter-card .card-body {
    padding: 1.5rem;
}

.parameter-card h6 {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.parameter-card h3 {
    color: #212529;
    font-weight: 700;
    font-size: 2rem;
    margin: 0.5rem 0;
}

.parameter-card small {
    font-size: 0.8rem;
}

.parameter-card.border-danger {
    border: 2px solid #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.05);
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.2);
}

/* Threshold Settings */
.threshold-form .form-label {
    color: #6c757d;
    font-weight: 600;
}

.threshold-form .form-check-label {
    color: #212529;
    font-size: 1rem;
    margin-bottom: 10px;
}

.threshold-input-group {
    margin-top: 10px;
    padding-top: 10px;
}

.form-control-sm {
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.form-control-sm:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.save-threshold {
    border-radius: 5px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.save-threshold:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
}

.btn-sm {
    border-radius: 5px;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Period Selector */
.period-selector {
    display: flex;
    gap: 0.5rem;
}

.period-selector .btn-outline-info {
    border-radius: 5px;
    font-size: 0.9rem;
    padding: 0.375rem 0.75rem;
    border-width: 1.5px;
}

.period-selector .btn-outline-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(17, 137, 215, 0.2);
}

.period-selector .btn-check:checked + .btn-outline-info,
.period-selector .btn-outline-info.active {
    background-color: #0c63e4;
    border-color: #0c63e4;
    color: white;
    box-shadow: 0 2px 10px rgba(12, 99, 228, 0.3);
}

