/**
 * ========================================
 * WEATHER PAGES STYLESHEET
 * ========================================
 * Styles for weather components and pages
 */

/* ========================================
   GLASSMORPHISM OVERRIDES
   ======================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* ========================================
   SEARCH SECTION - SIDE BY SIDE LAYOUT
   ======================================== */
.search-section {
    margin-bottom: 2rem;
    position: relative;
    z-index: 100;
}

.search-card {
    padding: 1.5rem;
    position: relative;
    z-index: 100;
}

.search-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    overflow: visible;
}

.search-input-container {
    flex: 1;
    position: relative;
    z-index: 200;
    isolation: isolate;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 0.875rem 1rem 0.875rem 3rem;
    color: white;
    font-size: 1rem;
}

.search-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input-wrapper input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 1;
}

.location-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.location-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.location-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   CITY DROPDOWN STYLES
   ======================================== */
.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    max-height: 400px;
    overflow-y: auto;
    z-index: 99999;
    display: none;
}

.city-dropdown.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.city-dropdown-item {
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.city-dropdown-item:last-child {
    border-bottom: none;
}

.city-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.city-dropdown-item .city-name {
    font-weight: 500;
    color: white;
}

.city-dropdown-item .city-country {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Custom scrollbar for dropdown */
.city-dropdown::-webkit-scrollbar {
    width: 6px;
}

.city-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.city-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.city-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ========================================
   WEATHER CONTENT
   ======================================== */
.weather-content {
    animation: fadeIn 0.5s ease-in-out;
    position: relative;
    z-index: 1;
}

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

/* Weather Main Card */
.weather-main-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.weather-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.weather-location h2 {
    font-size: 2rem;
    margin: 0;
    color: white;
}

.weather-location svg {
    color: rgba(139, 92, 246, 0.8);
}

.weather-location span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.weather-main-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.weather-icon-large {
    width: 150px;
    height: 150px;
}

.temperature-display {
    text-align: left;
}

.temp-value {
    font-size: 5rem;
    font-weight: 300;
    line-height: 1;
    background: linear-gradient(135deg, #a78bfa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.temp-range {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
}

.weather-description {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: capitalize;
    margin-bottom: 2rem;
}

.weather-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-item svg {
    color: rgba(139, 92, 246, 0.8);
    flex-shrink: 0;
}

.detail-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

/* ========================================
   QUICK ACTIONS
   ======================================== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.action-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    color: inherit;
}

.action-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.action-card svg {
    color: rgba(139, 92, 246, 0.8);
    margin-bottom: 1rem;
}

.action-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.action-card p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ========================================
   FORECAST STYLES
   ======================================== */
.forecast-search,
.alert-search {
    margin-bottom: 2rem;
}

.forecast-content,
.alerts-content {
    animation: fadeIn 0.5s ease-in-out;
}

.forecast-header-info,
.alerts-header-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    margin-bottom: 2rem;
    text-align: center;
}

.forecast-section {
    margin-bottom: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

/* Hourly Forecast */
.hourly-forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.hourly-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.hourly-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.hour-time {
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.forecast-icon {
    width: 60px;
    height: 60px;
    margin: 0.5rem 0;
}

.hour-temp {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(139, 92, 246, 0.9);
    margin: 0.5rem 0;
}

.hour-condition {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.hour-pop {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: rgba(96, 165, 250, 0.9);
}

/* Daily Forecast */
.daily-forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.daily-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
}

.daily-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.daily-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.daily-date {
    font-weight: 600;
    color: white;
}

.forecast-icon-large {
    width: 70px;
    height: 70px;
}

.daily-temps {
    display: flex;
    justify-content: space-around;
    margin: 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.temp-high {
    color: #fca5a5;
}

.temp-low {
    color: #93c5fd;
}

.daily-condition {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.daily-details {
    display: flex;
    justify-content: space-around;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.daily-details div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   HISTORY STYLES
   ======================================== */
.history-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.history-stats {
    font-weight: 600;
    color: white;
}

.history-content {
    display: grid;
    gap: 1rem;
}

.history-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
}

.history-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.history-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.history-icon {
    width: 60px;
    height: 60px;
}

.history-icon-placeholder {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-info {
    flex: 1;
}

.history-city {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
}

.history-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.history-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.history-weather {
    text-align: right;
}

.history-temp {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(139, 92, 246, 0.9);
}

.history-condition {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.history-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-view,
.btn-remove {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view {
    background: rgba(139, 92, 246, 0.8);
    color: white;
}

.btn-view:hover {
    background: rgba(139, 92, 246, 1);
}

.btn-remove {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.8);
    color: white;
}

.empty-state {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.empty-state svg {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.empty-state h2 {
    margin-bottom: 0.5rem;
    color: white;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

/* ========================================
   ALERTS STYLES
   ======================================== */
.alerts-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.alert-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-left: 4px solid;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.alert-card:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.15);
}

.alert-card.severity-high {
    border-left-color: #ef4444;
}

.alert-card.severity-medium {
    border-left-color: #f59e0b;
}

.alert-card.severity-low {
    border-left-color: #3b82f6;
}

.alert-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.alert-header h3 {
    font-size: 1.25rem;
    margin: 0;
    color: white;
}

.alert-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.alert-badge.high {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.alert-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.alert-badge.low {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.alert-message {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
}

.alert-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.no-alerts {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.no-alerts svg {
    color: rgba(16, 185, 129, 0.8);
    margin-bottom: 1rem;
}

.no-alerts h2 {
    color: white;
}

.no-alerts p {
    color: rgba(255, 255, 255, 0.7);
}

.weather-summary-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    margin-bottom: 2rem;
}

.weather-summary-card h3 {
    margin-bottom: 1.5rem;
    color: white;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-item svg {
    color: rgba(139, 92, 246, 0.8);
    flex-shrink: 0;
}

.summary-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.summary-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.alert-legend {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.alert-legend h3 {
    margin-bottom: 1.5rem;
    color: white;
}

.legend-items {
    display: grid;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legend-badge {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ========================================
   SETTINGS STYLES
   ======================================== */
.settings-content {
    max-width: 800px;
    margin: 0 auto;
}

.settings-section {
    margin-bottom: 2rem;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: white;
}

.section-heading svg {
    color: rgba(16, 185, 129, 0.8);
}

.settings-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.setting-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: white;
}

.setting-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
}

.toggle-group {
    display: flex;
    gap: 0.5rem;
}

.toggle-option {
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.toggle-option.active {
    background: rgba(139, 92, 246, 0.8);
    border-color: rgba(139, 92, 246, 0.8);
}

.toggle-option:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: rgba(139, 92, 246, 0.8);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(192, 132, 252, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.profile-info h3 {
    margin-bottom: 0.25rem;
    color: white;
}

.profile-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.profile-info small {
    color: rgba(255, 255, 255, 0.5);
}

.settings-message {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
    backdrop-filter: blur(20px);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.settings-message.success {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.settings-message.error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

/* ========================================
   ABOUT PAGE STYLES
   ======================================== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.content-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: white;
}

.content-card p,
.content-card ul,
.content-card ol,
.content-card dl {
    color: rgba(255, 255, 255, 0.9);
}

.content-card h3,
.content-card h4 {
    color: white;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tech-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.tech-card h3 {
    color: rgba(139, 92, 246, 0.9);
    margin-bottom: 1rem;
}

.tech-card ul {
    list-style: none;
}

.tech-card li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.tech-card li:before {
    content: "✓ ";
    color: rgba(16, 185, 129, 0.8);
    font-weight: bold;
    margin-right: 0.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: white;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.feature-list,
.flow-list,
.limitation-list,
.future-list,
.credit-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li,
.limitation-list li,
.future-list li,
.credit-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.feature-list li:before,
.limitation-list li:before,
.future-list li:before,
.credit-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: rgba(139, 92, 246, 0.9);
    font-weight: bold;
}

.concept-list {
    padding: 0;
}

.concept-list dt {
    font-weight: 700;
    color: rgba(139, 92, 246, 0.9);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.concept-list dd {
    margin-left: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   LOADING & ERROR STATES
   ======================================== */
.loading-state {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(139, 92, 246, 0.9);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    background: rgba(239, 68, 68, 0.2);
    border-left-color: #ef4444;
    color: #fca5a5;
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #ef4444;
    margin-bottom: 1.5rem;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.hidden {
    display: none !important;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header h1,
.page-header p,
.section-title {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
    }

    .location-btn {
        width: 100%;
    }

    .weather-main-info {
        flex-direction: column;
        gap: 1rem;
    }

    .temperature-display {
        text-align: center;
    }

    .temp-value {
        font-size: 4rem;
    }

    .weather-details-grid {
        grid-template-columns: 1fr 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .history-main {
        flex-direction: column;
        text-align: center;
    }

    .history-weather {
        text-align: center;
    }

    .history-actions {
        justify-content: center;
    }

    .tech-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .weather-main-card {
        padding: 2rem 1.5rem;
    }

    .temp-value {
        font-size: 3rem;
    }

    .weather-details-grid {
        grid-template-columns: 1fr;
    }

    .forecast-header-info,
    .alerts-header-info {
        padding: 1.5rem;
    }

    .daily-card {
        padding: 1.5rem;
    }

    .settings-message {
        left: 1rem;
        right: 1rem;
    }
}

/* ========================================
   Z-INDEX FIX FOR DROPDOWN VISIBILITY
   ======================================== */
.page-container {
    position: relative;
    overflow: visible !important;
}

.container {
    overflow: visible !important;
}

main {
    overflow: visible !important;
}

/* Ensure glassmorphism cards don't create new stacking context */
.glass-card {
    isolation: auto;
}

/* Search card creates its own stacking context */
.search-card.glass-card {
    isolation: isolate;
    z-index: 100;
}

/* ========================================
   ADMIN PANEL STYLES
   ======================================== */

/* Admin Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.stat-card svg {
    color: rgba(139, 92, 246, 0.8);
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Admin Controls */
.admin-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.search-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrapper svg {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.search-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-wrapper input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(139, 92, 246, 0.5);
}

.search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.refresh-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

/* Users Container */
.users-container {
    padding: 0;
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: white;
}

.table-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.table-responsive {
    overflow-x: auto;
}

/* Users Table */
.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.users-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.users-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.users-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.users-table tbody tr.current-user {
    background: rgba(139, 92, 246, 0.1);
}

.users-table td {
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.users-table code {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    color: rgba(139, 92, 246, 0.9);
}

.password-cell {
    letter-spacing: 0.05em;
}

.user-name-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Badges */
.badge-admin,
.badge-user,
.badge-you {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-admin {
    background: rgba(16, 185, 129, 0.2);
    color: rgb(16, 185, 129);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-user {
    background: rgba(59, 130, 246, 0.2);
    color: rgb(59, 130, 246);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-you {
    background: rgba(139, 92, 246, 0.2);
    color: rgb(139, 92, 246);
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 0.625rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-icon {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-icon svg {
    color: white;
}

.btn-toggle:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.text-muted {
    color: rgba(255, 255, 255, 0.4);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state svg {
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.6);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal.hidden {
    display: none;
}

.modal-content {
    max-width: 400px;
    width: 90%;
    padding: 2rem;
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: white;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.modal-user-info {
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.modal-user-info strong {
    color: white;
    display: block;
    margin-bottom: 0.25rem;
}

.modal-user-info small {
    color: rgba(255, 255, 255, 0.6);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-cancel,
.btn-danger {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: rgb(239, 68, 68);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-controls {
        flex-direction: column;
    }

    .search-wrapper,
    .refresh-btn {
        width: 100%;
    }

    .table-responsive {
        overflow-x: scroll;
    }

    .users-table {
        min-width: 800px;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-danger {
        width: 100%;
    }
}
