/* ========================================================================
   NordicWeather - components.css
   UI-komponenter, knappar, kort, notifikationer
   ======================================================================== */

/* ========================================================================
   KOMPONENTER (KNAPPAR, KORT, ALERTS) - MER RAFFINERADE
   ======================================================================== */

/* Knappar */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
    }

.btn-outline-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

    .btn-outline-secondary:hover {
        transform: translateY(-2px);
    }

.btn-se-utrakning {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    border-radius: var(--button-radius);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-standard);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(30, 136, 229, 0.2);
}

    .btn-se-utrakning:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(30, 136, 229, 0.3);
    }

    .btn-se-utrakning svg {
        transition: transform 0.3s ease;
    }

    .btn-se-utrakning:hover svg {
        transform: translateY(2px);
    }

/* Min plats-knapp */
#minPosition,
#minPositionDesktop {
    color: white !important;
    border-color: var(--primary-color) !important;
    background-color: var(--primary-color) !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    z-index: 100;
    cursor: pointer !important;
    pointer-events: auto !important;
}

    #minPosition:hover,
    #minPositionDesktop:hover {
        color: var(--primary-color) !important;
        background-color: white !important;
        border-color: var(--primary-color) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(30, 136, 229, 0.25);
    }

    #minPosition svg, #minPositionDesktop svg,
    #minPosition path, #minPositionDesktop path,
    #minPosition circle, #minPositionDesktop circle {
        pointer-events: none;
    }

/* Kort */
.card {
    background-color: var(--background-card);
    border: none;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition-standard);
    overflow: hidden;
    height: 100%;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: var(--hover-shadow);
    }

.card-header {
    background-color: var(--background-card);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 1.5rem 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

    .card-header.blue-card-header {
        background-color: var(--primary-color);
        color: white;
        font-weight: 600;
        padding: 1.25rem 1.5rem;
    }

    .card-header.provider-logo {
        background-color: var(--background-white);
        border: none;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 80px;
        padding: 1rem;
    }

        .card-header.provider-logo img {
            max-height: 50px;
            max-width: 100%;
            object-fit: contain;
            filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
        }

        .card-header.provider-logo img[src*="SMHI"] {
            max-height: 30px !important;
        }

        .card-header.provider-logo img[src*="YR"] {
            max-height: 35px !important;
        }

.card-body {
    padding: 1.5rem;
}

/* ========================================================================
   NOTIFIKATIONER
   ======================================================================== */

#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    max-width: 320px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

    .notification.show {
        transform: translateX(0);
        opacity: 1;
    }

    .notification svg {
        margin-right: 10px;
        flex-shrink: 0;
    }

.notification-success {
    border-left: 3px solid #4A90E2;
}

    .notification-success svg {
        color: #4A90E2;
    }

.notification-warning {
    border-left: 3px solid #f39c12;
}

    .notification-warning svg {
        color: #f39c12;
    }

.notification-error {
    border-left: 3px solid #e74c3c;
}

    .notification-error svg {
        color: #e74c3c;
    }

.notification-info {
    border-left: 3px solid #4A90E2;
}

    .notification-info svg {
        color: #4A90E2;
    }

.notification-message {
    flex-grow: 1;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
}

.notification-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-left: 8px;
    color: #7f8c8d;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #2c3e50;
}

/* ========================================================================
   LADDNINGS�VERL�GG
   ======================================================================== */

#loadingOverlay {
    /* Anv�nd !important f�r att s�kerst�lla att stilen inte �verskrids */
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100vh !important; /* Viktigt f�r mobil */
    background: linear-gradient(180deg, #4A90E2 0%, #5BA3F5 50%, #6BB6FF 100%) !important;
    z-index: 99999 !important; /* H�jd z-index */
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
    backdrop-filter: blur(4px) !important;
    /* Mobilspecifika f�rb�ttringar */
    -webkit-backdrop-filter: blur(4px) !important;
    touch-action: none !important; /* F�rhindra scrolling p� mobil */
    pointer-events: auto !important;
    overflow: hidden !important;
}

    /* N�r loading visas */
    #loadingOverlay.show {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    #loadingOverlay p {
        margin-top: 1.5rem !important;
        font-size: 1.1rem !important;
        color: white !important;
        font-weight: 500 !important;
        text-align: center !important;
        padding: 0 2rem !important;
        max-width: 90% !important;
        line-height: 1.4 !important;
    }

.spinner-container {
    width: 64px !important;
    height: 64px !important;
    position: relative !important;
}

.spinner {
    width: 100% !important;
    height: 100% !important;
    border: 5px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    border-top-color: white !important;
    animation: spin 1s linear infinite !important;
}
body.loading-active {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* ========================================================================
   COOKIE BANNER
   ======================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
}

    .cookie-banner.show {
        display: block;
    }

.consent-content {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.consent-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-text);
}

.consent-header p {
    margin: 0;
    color: var(--medium-text);
}

.consent-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.consent-option {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: 6px;
    background-color: var(--background-light);
}

.consent-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
}

.checkbox-label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-text);
}

.consent-description {
    margin: 0;
    font-size: 0.85rem;
    color: var(--medium-text);
}

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.consent-link {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
}

    .consent-link:hover {
        text-decoration: underline;
    }

/* Nya stilar f�r klart.se-liknande cookie banner */
.consent-detailed-settings {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.detailed-actions {
    margin-top: 1rem;
}

.consent-footer {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    background: none;
    border: none;
}

    .btn-link:hover {
        text-decoration: underline;
    }

@media (min-width: 768px) {
    .consent-content {
        padding: 2rem;
    }

    .consent-options {
        flex-direction: row;
        gap: 1.5rem;
    }

    .consent-option {
        flex: 1;
    }
}
@media (max-width: 767.98px) {
    #loadingOverlay {
        /* Extra s�kerhet f�r mobil */
        min-height: 100vh !important;
        min-width: 100vw !important;
    }

        #loadingOverlay p {
            font-size: 0.95rem !important;
            padding: 0 1.5rem !important;
            max-width: 85% !important;
        }

    .spinner-container {
        width: 56px !important;
        height: 56px !important;
    }
}
@media (max-width: 767px) {
    .consent-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .consent-link {
        margin: 0.5rem 0 0 0;
        text-align: center;
    }

    .btn-link {
        text-align: center;
        margin-top: 0.5rem;
    }

    .consent-footer {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}



.location-icon,
.history-icon {
    font-size: 16px;
}


/* ========================================================================
   AUTOCOMPLETE STYLING
   ======================================================================== */

/* Förbättrad autocomplete-dropdown */
.ui-autocomplete {
    z-index: 10000;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(13, 71, 161, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 8px;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    margin-top: 8px;
    backdrop-filter: blur(10px);
    animation: slideDown 0.2s ease-out;
}

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

/* Custom scrollbar för autocomplete */
.ui-autocomplete::-webkit-scrollbar {
    width: 6px;
}

.ui-autocomplete::-webkit-scrollbar-track {
    background: transparent;
}

.ui-autocomplete::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.ui-autocomplete::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* F�rhindra att autocomplete hamnar under andra element */
.search-container {
    position: relative;
}

/* Autocomplete-items (dropdown-element) */
.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Ikon container för autocomplete */
.autocomplete-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

/* Ikon för sökalternativ */
.location-icon, .history-icon, .popular-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Variant för historik-ikon */
.history-icon {
    color: rgba(255, 255, 255, 0.95);
    background-color: rgba(255, 255, 255, 0.15);
}

/* Sökikon stil */
.search-item .autocomplete-icon {
    color: rgba(255, 255, 255, 0.9);
}

/* Platsikon stil */
.location-item .autocomplete-icon {
    color: rgba(255, 255, 255, 0.9);
}

/* Historik-ikon stil */
.history-item .autocomplete-icon {
    color: rgba(255, 255, 255, 0.9);
}

/* Textinnehåll i autocomplete-items */
.autocomplete-item span {
    font-weight: 500;
    font-size: 14px;
    color: #ffffff;
    flex-grow: 1;
}

/* Kategorirubriker i dropdown */
.ui-autocomplete-category {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    background-color: transparent;
    padding: 12px 12px 4px 12px !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 4px 0 4px 0;
    border: none;
}

/* List items i dropdown */
.ui-menu-item {
    padding: 2px 0;
    margin: 0;
    list-style: none;
}

/* Wrapper för list items */
.ui-menu-item-wrapper {
    padding: 0 !important;
    border-radius: 8px;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    border: none !important;
    margin: 0 !important;
}

/* Aktiv/hover-state för list items */
.ui-menu-item-wrapper.ui-state-active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: none !important;
    margin: 0 !important;
}

.ui-menu-item-wrapper.ui-state-active .autocomplete-item {
    transform: translateX(2px);
}

.ui-menu-item-wrapper.ui-state-active .autocomplete-icon {
    transform: scale(1.1);
}

/* S�kikoner f�r inputf�lten */
.search-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
}

/* Justera placering av text i s�kf�ltet */
.search-container input.form-control {
    padding-left: 42px;
}

/* Delningslinje i dropdown */
.ui-menu-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 6px 0;
}

/* Lägg till hover-effekt på autocomplete-items */
.ui-menu-item .autocomplete-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Rensa historik-knapp med modern styling */
.clear-history-item {
    display: none !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-left: 3px solid rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 8px !important;
}

.clear-history-item:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateX(2px);
}

.clear-history-item .autocomplete-icon {
    color: #ffffff !important;
}

.clear-history-item .autocomplete-item span {
    color: #ffffff !important;
    font-weight: 600 !important;
}



.circle-header {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.5rem;
}

    .circle-header h4 {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
    }

.circle-metrics {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.circle-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.circle-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
}

    .circle-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.circle-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1;
}

.circle-label {
    font-size: 0.8rem;
    color: var(--medium-text);
    margin-top: 0.25rem;
}



/* Duplicerade stilar borttagna - se ovan för den huvudsakliga stylingen */

/* Tooltip styling */
.tooltip-error {
    background-color: #f8d7da;
    color: #842029;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
}
 /* ========================================================================
   F�RB�TTRADE LOADING-OVERLAY STILAR
   ======================================================================== */


/* Subtil laddningsindikator - l�gg till i components.css */
.subtle-loading-indicator {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}
body {
    opacity: 0;
    transition: opacity 0.3s ease;
}

    body.ready {
        opacity: 1;
    }

/* Laddningsindikator */
#initialLoadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #4A90E2 0%, #5BA3F5 50%, #6BB6FF 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

    #initialLoadingOverlay.hide {
        opacity: 0;
        pointer-events: none;
    }

.initial-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

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

/* ========================================
   GPS-knapp på "Min plats"-kort
   ======================================== */
.update-location-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 6px 10px;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.update-location-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.update-location-btn:active {
    transform: scale(0.95);
}

.update-location-btn svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   "Spara som favorit"-knapp
   ======================================== */
.save-favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
}

.save-favorite-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.save-favorite-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

.save-favorite-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    cursor: default;
    opacity: 0.8;
}

.save-favorite-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.save-favorite-btn svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   Modal för att ersätta favorit
   ======================================== */
.favorite-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.favorite-modal.show {
    opacity: 1;
}

.favorite-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.favorite-modal.show .favorite-modal-content {
    transform: scale(1);
}

.favorite-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.4);
}

.favorite-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.favorite-modal-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.favorite-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #2c3e50;
}

.favorite-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.favorite-modal-body p {
    margin: 0 0 16px 0;
    color: #5a6c7d;
    font-size: 14px;
    line-height: 1.5;
}

.favorite-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.favorite-item {
    display: grid;
    grid-template-columns: 28px 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.favorite-item:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: rgba(74, 144, 226, 0.3);
    transform: translateX(2px);
}

.favorite-item:hover .favorite-arrow {
    transform: translateX(4px);
    color: #4A90E2;
}

.favorite-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(74, 144, 226, 0.15);
    color: #4A90E2;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.favorite-city {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    text-align: right;
}

.favorite-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #95a5a6;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.favorite-replace {
    color: #4A90E2;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
}

.favorite-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(255, 255, 255, 0.4);
}

.btn-cancel {
    padding: 8px 18px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    color: #5a6c7d;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Responsiv design för modal */
@media (max-width: 640px) {
    .favorite-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .favorite-modal-header {
        padding: 16px 20px;
    }

    .favorite-modal-header h3 {
        font-size: 18px;
    }

    .favorite-modal-body {
        padding: 20px;
    }

    .favorite-item {
        padding: 12px;
    }

    .favorite-city {
        font-size: 14px;
    }

    .favorite-replace {
        font-size: 12px;
    }
}