/* ===== Geolapis Enhanced Styles ===== */

/* Variables */
:root {
    --primary-color: #003f87;
    --secondary-color: #FFD700;
    --accent-color: #00BFFF;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --purple-color: #8A2BE2;
    --indigo-color: #4361ee;
    --dark-color: #001c40;
    --light-color: #f8f9fa;
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --border-color: #e9ecef;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.18);
    --transition: all 0.3s ease;
    --transition-slow: all 0.4s cubic-bezier(0.16, 0.84, 0.44, 1);
}

/* Core layout reset and structure */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

.geolapis-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
}

.preloader-content {
    text-align: center;
    color: white;
}

.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
.app-header {
    background: white;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Controls Section */
.controls-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.control-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Controls */
.form-select, .form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: var(--transition);
    min-width: 180px;
    background: white;
}

.form-select:focus, .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 191, 255, 0.25);
    outline: none;
}

/* Search Container */
.search-container {
    display: flex;
    min-width: 250px;
    position: relative;
}

.search-container .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    flex: 1;
}

.btn-search {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    padding: 0.5rem 0.75rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-search:hover {
    background: #002f66;
    border-color: #002f66;
    transform: translateY(-1px);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.btn:hover:before {
    opacity: 1;
}

.btn-bookmark {
    background: var(--light-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    height: 38px;
}

.btn-bookmark:hover {
    background: #e9ecef;
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-geobrief {
    background: var(--success-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-geobrief:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

/* Map Container */
.map-container {
    flex: 1;
    position: relative;
    background: var(--light-color);
}

#map {
    width: 100%;
    height: calc(100vh - 140px);
    transition: var(--transition);
}

/* Modals */
.modal {
    --modal-border-radius: 16px;
    --modal-shadow: var(--shadow-lg);
    --modal-transition: var(--transition-slow);
}

.modal-content {
    border: none;
    border-radius: var(--modal-border-radius);
    box-shadow: var(--modal-shadow);
    overflow: hidden;
    transform: translateY(25px) scale(0.98);
    opacity: 0;
    transition: var(--modal-transition);
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Modal Headers */
.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: none;
    position: relative;
    display: flex;
    align-items: center;
    background-size: 200% 200%;
    transition: background-position 0.6s ease;
}

.modal-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 50%, var(--primary-color) 100%);
}

.modal-header.bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e67e22 50%, var(--warning-color) 100%);
}

.modal-header.bg-info {
    background: linear-gradient(135deg, var(--accent-color) 0%, #1e90ff 50%, var(--accent-color) 100%);
}

.modal-header.bg-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c0392b 50%, var(--danger-color) 100%);
}

.modal-header.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #27ae60 50%, var(--success-color) 100%);
}

.modal-header.bg-purple {
    background: linear-gradient(135deg, var(--purple-color) 0%, #6a0dad 50%, var(--purple-color) 100%);
}

.modal-header.bg-indigo {
    background: linear-gradient(135deg, var(--indigo-color) 0%, #3a0ca3 50%, var(--indigo-color) 100%);
}

.modal-header:hover {
    background-position: 100% 100%;
}

.modal-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.7) 50%, 
        rgba(255,255,255,0) 100%);
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    letter-spacing: 0.25px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin: 0;
}

.modal-title i {
    font-size: 1.1em;
    margin-right: 0.75rem;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: var(--transition);
    margin-left: auto;
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg) scale(1.1);
}

/* Modal Body */
.modal-body {
    padding: 1.5rem;
    color: var(--text-color);
    background-color: white;
    position: relative;
}

.modal-body:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,0.08) 50%, 
        rgba(0,0,0,0) 100%);
}

/* Info Grid */
.info-grid {
    display: grid;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--light-color);
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.info-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
    border-color: var(--border-color);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.info-item:hover .info-icon {
    transform: scale(1.1);
    background: var(--accent-color);
}

.info-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Intro Modal */
.intro-modal {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
    border-radius: var(--modal-border-radius);
    border: none;
}

.intro-logo {
    max-width: 120px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Form Elements in Modals */
.form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.form-control, .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: none;
    background-color: #f9fafb;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 191, 255, 0.12);
    background-color: white;
    transform: translateY(-1px);
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Table Styling */
.table {
    color: var(--text-color);
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table thead th {
    border-bottom-width: 1px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-color: var(--border-color);
}

.table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

.table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-color: var(--border-color);
}

/* Watch Field Groups */
.watch-field {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Toast Styling */
#watchToasts {
    z-index: 1100;
}

.toast {
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    border: none;
    overflow: hidden;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.toast-body {
    font-weight: 500;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
}

/* Footer */
.app-footer {
    background: var(--dark-color);
    color: white;
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
    background: rgba(255, 255, 255, 0.1);
}

.lapisai-link {
    font-weight: 600;
    background: rgba(255, 215, 0, 0.1);
    padding: 0.25rem 0.75rem !important;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* Leaflet Controls Enhancement */
.leaflet-control {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px !important;
    box-shadow: var(--shadow) !important;
    border: 1px solid var(--border-color) !important;
}

.leaflet-bar {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.leaflet-bar a {
    border-bottom: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
}

.leaflet-bar a:first-child {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

.leaflet-bar a:last-child {
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    border-bottom: none !important;
}

.leaflet-bar a:hover {
    background-color: var(--light-color) !important;
}

/* Search Suggestions */
#searchSuggestions {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0.25rem;
}

#searchSuggestions li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    list-style: none;
}

#searchSuggestions li:last-child {
    border-bottom: none;
}

#searchSuggestions li:hover {
    background: var(--light-color);
    transform: translateX(2px);
}

/* Dropdown Enhancements */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 0.5rem;
    border: 1px solid var(--border-color);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-item:hover {
    background: var(--light-color);
    transform: translateX(2px);
}

/* Geo Brief Styles */
#geoBrief {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    line-height: 1.5;
    max-width: 900px;
    margin: 0 auto;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

#geoBrief > div:first-child {
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

#geoBrief h2 {
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.25px;
    margin: 0;
    font-size: 20px;
}

#gb-when {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 12px;
    margin-left: auto;
}

#gb-title {
    color: var(--text-color);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    font-size: 18px;
    margin: 6px 0 12px;
}

/* Card Styles */
.gb-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.gb-card h4 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.gb-card h4 i {
    margin-right: 0.5rem;
    font-size: 0.9em;
}

/* Key-Value Pairs */
.gb-kv {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px dashed #eee;
}

.gb-kv:last-child {
    border-bottom: none;
}

.gb-kv span:first-child {
    font-weight: 500;
    color: #7f8c8d;
}

.gb-kv span:last-child {
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
}

/* Pill Badges */
.gb-pill {
    display: inline-block;
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    margin: 2px 6px 0 0;
    transition: all 0.2s ease;
}

.gb-pill:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* Map Image */
#gb-map {
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,.12);
    width: 100%;
    height: auto;
}

#gb-map:hover {
    transform: scale(1.02);
}

/* Geo Brief Progress */
#geoBriefProgress .modal-content {
    border-radius: 12px;
}

#gbp-msg {
    transition: var(--transition);
}

#gbp-bar {
    transition: width 0.3s ease;
}

/* LapisAI Modal */
#lapisaiModal .modal-content {
    border-radius: 0;
}

#lapisaiModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .brand-section {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .controls-section {
        justify-content: center;
    }
    
    .control-group {
        flex: 1;
        min-width: 150px;
    }
    
    .search-container {
        min-width: auto;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    #map {
        height: calc(100vh - 180px);
    }
    
    .modal-header {
        padding: 1rem 1.25rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    .btn {
        padding: 0.65rem 1.25rem;
    }
    
    .form-control, .form-select {
        padding: 0.75rem 1rem;
    }
    
    /* Geo Brief Mobile */
    #geoBrief {
        padding: 1rem;
    }
    
    #geoBrief > div:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    #gb-when {
        margin-left: 0;
        margin-top: 0.25rem;
    }
    
    #geoBrief > div:nth-child(3) {
        grid-template-columns: 1fr;
    }
    
    #geoBrief > div:nth-child(4) {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .controls-section {
        flex-direction: column;
        width: 100%;
    }
    
    .control-group {
        width: 100%;
    }
    
    .form-select, .form-control {
        min-width: auto;
        width: 100%;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-purple { background-color: var(--purple-color) !important; }
.bg-indigo { background-color: var(--indigo-color) !important; }

.shadow-sm { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important; }
.shadow-md { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important; }
.shadow-lg { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important; }

/* Print Styles for Geo Brief */
@media print {
    .app-header,
    .app-footer,
    .leaflet-control {
        display: none !important;
    }
    
    #map {
        height: 500px !important;
    }
    
    .gb-card {
        break-inside: avoid;
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Custom Scrollbar */
.modal-dialog-scrollable .modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
    transition: var(--transition);
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Measurement Tool Enhancements */
.leaflet-container.is-measuring { 
    cursor: crosshair !important; 
}

.leaflet-container.is-measuring * { 
    touch-action: none; 
}

.boundary-warn .leaflet-popup-content { 
    font-size: 12px; 
    margin: 6px 8px; 
}

/* Ghost Note chips */
.ghost-chip{
  display:inline-flex;align-items:center;gap:.45rem;
  background:#F3EEFF;color:#6B35E2;font-weight:600;
  padding:.25rem .6rem;border-radius:999px;font-size:.8rem;
}
.ghost-chip .dot{width:.5rem;height:.5rem;border-radius:50%}
.ghost-chip.gps .dot{background:#16a34a}
.ghost-chip.marker .dot{background:#0ea5e9}
.ghost-chip.center .dot{background:#f59e0b}


/* Match the look/size of the controls' buttons (e.g., .btn-search) */
.controls-section .btn-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;               /* match your input/button height */
  padding: 0 14px;            /* same horizontal padding as .btn-search */
  border-radius: 8px;         /* match your button radius */
  line-height: 1;             
  font-weight: 600;           /* optional: same weight as other UI buttons */
  gap: 8px;                   /* space between icon and text */
}

/* Color variants to keep things consistent */
.controls-section .btn-auth-primary {
  background: var(--bs-primary, #0d6efd);
  color: #fff;
  border: none;
}
.controls-section .btn-auth-primary:hover {
  filter: brightness(0.95);
}

.controls-section .btn-auth-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.controls-section .btn-auth-outline:hover {
  border-color: rgba(255,255,255,.45);
}

/* Make sure controls don’t wrap oddly on smaller screens */
.controls-section .control-group.auth-group {
  display: flex;
  align-items: end;
  gap: 8px;
}
.controls-section .auth-label {
  font-size: 12px;
  color: #9db1c9; /* matches your small-muted tone */
  margin-bottom: 6px;
}

/* Make the country select comfortable so text isn't cut */
.controls-section #countrySelect.form-select{
  /* let it size naturally, but never too short */
  min-height: 42px;           /* 40–44px works; 42px is a sweet spot */
  height: auto;

  /* more vertical breathing room */
  padding-top: .5rem;         /* default .375rem is a bit tight in your header */
  padding-bottom: .5rem;

  /* keep the text from sitting too low */
  line-height: 1.25;

  /* ensure the box can show its contents properly */
  overflow: visible;
  font-size: 0.95rem;         /* optional: slightly smaller text looks cleaner */
}

/* Width so long names fit (keeps your layout responsive) */
.controls-section #countrySelect.select-grow{
  width: clamp(220px, 24vw, 360px);
}


/* Add to your existing CSS */
/* Colorful Weather Icons CSS */
.weather-icon {
    font-size: 1.5em;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.weather-icon-large .weather-icon {
    font-size: 4rem !important;
}

.hour-icon .weather-icon {
    font-size: 1.8rem !important;
}

/* Hover effects for interactive feel */
.weather-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Specific weather type animations */
.weather-sunny {
    animation: gentle-pulse 3s ease-in-out infinite;
}

.weather-thunderstorm {
    animation: flash 2s ease-in-out infinite;
}

.weather-rain, .weather-day-rain, .weather-night-rain {
    animation: bounce 2s ease-in-out infinite;
}

.weather-snow {
    animation: float 3s ease-in-out infinite;
}

/* Animations */
@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-3px) rotate(5deg); }
    66% { transform: translateY(-1px) rotate(-5deg); }
}

/* Enhanced card styling */
.weather-current-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hourly-card, .weekly-card, .insights-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hourly-item {
    min-width: 85px;
    padding: 0.75rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.hourly-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #f8f9fa;
}

/* Temperature styling */
.high-temp {
    font-weight: bold;
    font-size: 1.1em;
    color: #dc3545;
}

.low-temp {
    font-size: 0.95em;
    color: #0d6efd;
}

/* UV Index colors */
.uvi-Low { color: #28a745; font-weight: bold; }
.uvi-Moderate { color: #ffc107; font-weight: bold; }
.uvi-High { color: #fd7e14; font-weight: bold; }
.uvi-Very-High { color: #dc3545; font-weight: bold; }
.uvi-Extreme { color: #6f42c1; font-weight: bold; }

/* Detail icons */
.detail-item i {
    width: 20px;
    margin-right: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .weather-icon-large .weather-icon {
        font-size: 3rem !important;
    }
    
    .hour-icon .weather-icon {
        font-size: 1.5rem !important;
    }
    
    .hourly-item {
        min-width: 75px;
        padding: 0.5rem;
    }
}

