/* Weather Module Styles */
.weather-app { --module-color: #38bdf8; }

/* Primary Buttons - Use app primary color (Sky Blue #38bdf8) */
.weather-app .btn-primary {
    background-color: #38bdf8 !important;
    border-color: #38bdf8 !important;
    color: #0c4a6e !important;
}

.weather-app .btn-primary:hover,
.weather-app .btn-primary:focus {
    background-color: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
    color: #fff !important;
}

/* Outline Primary Buttons */
.weather-app .btn-outline-primary {
    border-color: #38bdf8 !important;
    color: #0ea5e9 !important;
    background-color: transparent !important;
}

.weather-app .btn-outline-primary:hover,
.weather-app .btn-outline-primary:focus {
    background-color: #38bdf8 !important;
    border-color: #38bdf8 !important;
    color: #0c4a6e !important;
}

/* Secondary/Outline Secondary Buttons */
.weather-app .btn-secondary {
    background-color: #64748b !important;
    border-color: #64748b !important;
    color: #fff !important;
}

.weather-app .btn-secondary:hover,
.weather-app .btn-secondary:focus {
    background-color: #475569 !important;
    border-color: #475569 !important;
    color: #fff !important;
}

.weather-app .btn-outline-secondary {
    border-color: #64748b !important;
    color: #64748b !important;
    background-color: transparent !important;
}

.weather-app .btn-outline-secondary:hover,
.weather-app .btn-outline-secondary:focus {
    background-color: #38bdf8 !important;
    border-color: #38bdf8 !important;
    color: #0c4a6e !important;
}

/* Example Module Banner */
.example-module-banner {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.banner-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #38bdf8;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.banner-text {
    flex: 1;
}

.banner-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0c4a6e;
}

.banner-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #075985;
    line-height: 1.4;
}

.banner-text code {
    background: rgba(56, 189, 248, 0.15);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    color: #0369a1;
}

.banner-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    color: #0284c7;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.banner-link:hover {
    background: #0284c7;
    color: white;
    border-color: #0284c7;
}

/* Weather Card (inside content-card) */
.weather-card {
    padding: 1rem 0;
}

.weather-search {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.weather-search .form-control {
    flex: 1;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.weather-search .form-control:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
    outline: none;
}

.weather-search .btn {
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
}

.weather-result {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading State */
.weather-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #64748b;
}

.loading-spinner {
    font-size: 2.5rem;
    color: #38bdf8;
    margin-bottom: 1rem;
}

.weather-loading p {
    margin: 0;
    font-size: 0.9rem;
}

/* Weather Data Display */
.weather-data {
    text-align: center;
    width: 100%;
    padding: 1rem;
}

.weather-main {
    margin-bottom: 1.5rem;
}

.weather-icon {
    font-size: 4.5rem;
    color: #38bdf8;
    margin-bottom: 0.5rem;
    display: block;
}

.weather-temp {
    font-size: 3.5rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1;
}

.weather-info {
    margin-top: 0.5rem;
}

.weather-description {
    font-size: 1.25rem;
    color: #475569;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.weather-details {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Error State */
.weather-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #ef4444;
    text-align: center;
}

.weather-error i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.weather-error p {
    margin: 0;
    font-size: 0.9rem;
}

/* City Cards Grid */
.city-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.city-card {
    position: relative;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.city-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
}

.city-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.city-weather {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.city-weather-icon {
    font-size: 2.5rem;
    color: #38bdf8;
    margin-bottom: 0.25rem;
}

.city-temp {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
}

.city-description {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: capitalize;
}

.city-humidity {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.city-humidity i {
    color: #38bdf8;
}

.city-error {
    color: #ef4444;
    font-size: 0.85rem;
}

.city-error i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Delete button */
.delete-form {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.btn-delete {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.15s ease;
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
}

/* Loading state for cards */
.weather-loading-small {
    font-size: 1.5rem;
    color: #38bdf8;
    padding: 1rem;
}

/* Add City Card */
.add-city-card {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    cursor: pointer;
}

.add-city-card:hover {
    border-color: #38bdf8;
    background: #f0f9ff;
}

.add-city-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    padding: 1rem;
}

.add-city-content i {
    font-size: 2rem;
    color: #38bdf8;
}

.add-city-content span {
    font-weight: 500;
}

.add-city-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.add-city-form .form-control {
    text-align: center;
    border-radius: 0.5rem;
}

.add-city-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .city-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .city-cards-grid {
        grid-template-columns: 1fr;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .banner-link {
        width: 100%;
        justify-content: center;
    }
}

/* Settings Page - Temperature Unit Toggle */
.temp-unit-toggle .btn {
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.temp-unit-toggle .btn:hover {
    background: #f8fafc;
    color: #475569;
}

.temp-unit-toggle .btn-check:checked + .btn {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #0c4a6e;
}
