/* WPC National High/Low Styling - Enhanced Bootstrap 5 Design */

/* Main heading styling */
.page-header {
    background: linear-gradient(135deg, #dc3545, #b02a37);
    color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
}

/* Card enhancements */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid #e9ecef;
}

.card-header {
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
}

.card-header.bg-light {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca) !important;
}

/* Form controls enhancements */
.form-control, .form-select {
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Button enhancements */
.btn {
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border-color: #0d6efd;
}

.btn-success {
    background: linear-gradient(135deg, #198754, #146c43);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Alert styling */
.alert-info {
    border-left: 4px solid #0dcaf0;
    background: linear-gradient(135deg, #d1ecf1, #b8daff);
    border-color: #b8daff;
}

/* Tabulator table styling */
#data-table {
    border-radius: 0.375rem;
    overflow: hidden;
    min-height: 400px;
}

.tabulator {
    font-size: 0.875rem;
    border: none;
}

.tabulator-header {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
}

.tabulator-header .tabulator-col {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.tabulator-row:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.tabulator-row:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Temperature value styling */
.temp-high {
    color: #dc3545;
    font-weight: 600;
}

.temp-low {
    color: #0d6efd;
    font-weight: 600;
}

.location-list {
    font-size: 0.85em;
    line-height: 1.3;
}

/* Form check styling */
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-label {
    cursor: pointer;
}

/* Icon enhancements */
.bi {
    vertical-align: -0.125em;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .page-header {
        padding: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Status badges */
#result-count {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Enhanced breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
    content: var(--bs-breadcrumb-divider, ">") !important;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #0d6efd;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}
