/* map_location.css - Dedicated styles for Map Location page */

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Header and Title Styles */
.map-location-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.map-location-title {
    color: #374151;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.map-location-subtitle {
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-top: 5px;
}

/* Controls Section Styles */
.map-controls-section {
    background-color: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.map-controls-title {
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Company Selection Radio Buttons */
.map-company-selection {
    margin-bottom: 12px;
}

.map-company-title {
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.map-radio-items {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.map-radio-items > div {
    display: flex;
    align-items: center;
    background-color: #f8fafc;
    padding: 8px 15px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.map-radio-items > div:hover {
    background-color: #e0f2fe;
    border-color: #3DC6C3;
    box-shadow: 0 4px 8px rgba(61, 198, 195, 0.15);
    transform: translateY(-1px);
}

.map-radio-input {
    margin-right: 10px;
    transform: scale(1.3);
    accent-color: #3DC6C3;
}

.map-radio-label {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    line-height: 1.2;
}

/* Search and Filter Row */
.map-search-filter-row {
    display: flex;
    align-items: end;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.map-filter-group {
    display: flex;
    flex-direction: column;
}

.map-filter-label {
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.map-search-dropdown {
    width: 280px;
    color: #374151;
    font-size: 13px;
    min-height: 32px;
}

.map-search-dropdown .Select-control {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.2s ease;
    min-height: 32px;
    height: 32px;
}

.map-search-dropdown .Select-control:hover {
    border-color: #3DC6C3;
}

.map-search-dropdown .Select-control.is-focused {
    border-color: #3DC6C3;
    box-shadow: 0 0 0 2px rgba(61, 198, 195, 0.1);
}

/* Additional Dash dropdown styling for compact size */
.map-search-dropdown .Select-input {
    height: 30px;
}

.map-search-dropdown .Select-value {
    line-height: 30px;
    padding: 0 8px;
}

.map-state-dropdown .Select-control {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.2s ease;
    min-height: 32px;
    height: 32px;
}

.map-state-dropdown .Select-control:hover {
    border-color: #3DC6C3;
}

.map-state-dropdown .Select-control.is-focused {
    border-color: #3DC6C3;
    box-shadow: 0 0 0 2px rgba(61, 198, 195, 0.1);
}

.map-state-dropdown {
    width: 180px;
    color: #374151;
    font-size: 13px;
    min-height: 32px;
}

/* Reset Button */
.map-reset-button {
    background-color: #3DC6C3;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    height: fit-content;
}

.map-reset-button:hover {
    background-color: #22d3c4;
    box-shadow: 0 4px 8px rgba(61, 198, 195, 0.3);
    transform: translateY(-1px);
}

.map-reset-button:active {
    transform: translateY(0);
}

/* Map Section */
.map-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.map-section-title {
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.map-info {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
}

.map-info-highlight {
    color: #3DC6C3;
    font-weight: 600;
}

/* Data Table Section */
.map-table-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.map-table-title {
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Data Table Styling */
.dash-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.dash-table-container .dash-spreadsheet-container {
    border-radius: 8px;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table {
    background-color: #fff;
    border-collapse: separate;
    border-spacing: 0;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table thead tr th {
    background-color: #3DC6C3 !important;
    color: #fff !important;
    font-weight: 700 !important;
    border: 1px solid #22d3c4 !important;
    text-align: left !important;
    padding: 12px !important;
    font-size: 14px !important;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table tbody tr td {
    padding: 12px !important;
    text-align: left !important;
    background-color: #fff !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    font-size: 14px !important;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table tbody tr:nth-child(even) td {
    background-color: #f8fafc !important;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table tbody tr:hover td {
    background-color: #e0f2fe !important;
}

/* Company-specific styling */
.company-ampol {
    color: #0066CC !important;
    font-weight: 600 !important;
}

.company-bp {
    color: #00A651 !important;
    font-weight: 600 !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .map-search-filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .map-search-input {
        width: 100%;
    }
    
    .map-state-dropdown {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .map-radio-items {
        flex-direction: column;
        gap: 10px;
    }
    
    .map-radio-item {
        justify-content: center;
    }
    
    .map-controls-section {
        padding: 15px;
    }
    
    .map-section {
        padding: 15px;
    }
    
    .map-table-section {
        padding: 15px;
    }
}

/* Loading and Error States */
.map-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-style: italic;
}

.map-error {
    text-align: center;
    padding: 40px;
    color: #dc2626;
    background-color: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.map-no-data {
    text-align: center;
    padding: 40px;
    color: #d97706;
    background-color: #fffbeb;
    border-radius: 8px;
    border: 1px solid #fed7aa;
}

/* Utility Classes */
.map-text-center {
    text-align: center;
}

.map-text-left {
    text-align: left;
}

.map-text-right {
    text-align: right;
}

.map-mb-10 {
    margin-bottom: 10px;
}

.map-mb-15 {
    margin-bottom: 15px;
}

.map-mb-20 {
    margin-bottom: 20px;
}

.map-mt-10 {
    margin-top: 10px;
}

.map-mt-15 {
    margin-top: 15px;
}

.map-mt-20 {
    margin-top: 20px;
}