/* ========================================================================
   POLLEN WIDGET - Glassmorphism stil som matchar hemsidan
   ======================================================================== */

/* Huvudwidget - Samma glassmorphism som AI summary cards */
#pollenWidget {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#pollenWidget:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Card header - Vit glassmorphism med vit text */
#pollenWidget .card-header {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
}

#pollenWidget .card-header.blue-card-header {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    font-weight: 600 !important;
}

#pollenWidget .card-header svg {
    stroke: white !important;
}

#pollenWidget .card-header .pollen-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

#pollenWidget .card-header h4 {
    font-size: 0.95rem;
    margin: 0;
    color: white !important;
}

/* Card body - Vit text */
#pollenWidget .card-body {
    color: white;
    padding: 1rem;
}

#pollenWidget .card-body p {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Region namn - Vit text */
#pollenWidget #pollenRegionName {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

/* Pollen lista */
#pollenWidget .pollen-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

#pollenWidget .pollen-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#pollenWidget .pollen-list-item:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

#pollenWidget .pollen-list-item:last-child {
    margin-bottom: 0;
}

#pollenWidget .pollen-type {
    display: flex;
    align-items: center;
    color: white !important;
    font-weight: 500;
}

#pollenWidget .pollen-type-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

/* Pollennivåer - Anpassade för blå bakgrund */
#pollenWidget .pollen-level {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

#pollenWidget .pollen-level-low {
    background-color: rgba(220, 252, 231, 0.9) !important;
    color: #166534 !important;
}

#pollenWidget .pollen-level-medium {
    background-color: rgba(254, 243, 199, 0.9) !important;
    color: #92400e !important;
}

#pollenWidget .pollen-level-high {
    background-color: rgba(254, 202, 202, 0.9) !important;
    color: #991b1b !important;
}

/* Knapp för mer information */
#pollenWidget .btn-details,
#pollenWidget #togglePollenInfo {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    font-weight: 500;
}

#pollenWidget .btn-details:hover,
#pollenWidget #togglePollenInfo:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Info text sektion */
#pollenWidget #pollenInfoText {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    color: white;
}

#pollenWidget #pollenInfoText h6 {
    color: white !important;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

#pollenWidget #pollenInfoText ul {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

#pollenWidget #pollenInfoText ul li {
    margin-bottom: 0.5rem;
}

#pollenWidget #pollenInfoText .badge {
    margin-right: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-weight: 600;
}

/* Loading & Error states */
#pollenWidget #pollenLoading {
    color: white;
    padding: 2rem;
    text-align: center;
}

#pollenWidget #pollenLoading .spinner-border {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    border-top-color: white !important;
}

#pollenWidget #pollenLoading p {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
}

#pollenWidget #pollenError {
    background: rgba(255, 100, 100, 0.2) !important;
    border: 1px solid rgba(255, 100, 100, 0.4) !important;
    color: white !important;
    border-radius: 8px;
}

/* Detaljerad container */
#pollenWidget #pollenDetailedContainer h6 {
    color: white !important;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
