/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #ffffff;
    padding: 20px;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #e0c3fc, #8ec5fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.date-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

#current-time {
    font-size: 1.6rem;
    font-weight: 600;
    color: #8ec5fc;
}

#current-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 24px;
    align-items: start;
}

.middle-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== WIDGETS ===== */
.widget {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-header i {
    font-size: 1.2rem;
    color: #8ec5fc;
}

.widget-header h2 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== WEATHER ===== */
.weather-main {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.weather-icon {
    font-size: 3.5rem;
}

.weather-temp {
    font-size: 3rem;
    font-weight: 700;
    color: #8ec5fc;
}

.weather-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: capitalize;
    margin-top: 4px;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.weather-detail-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.weather-detail-item .label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.weather-detail-item .value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e0c3fc;
}

.weather-city {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 12px;
    text-align: center;
}

/* ===== CALENDAR ===== */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-nav button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.calendar-nav button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.calendar-nav span {
    font-weight: 600;
    font-size: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.calendar-day-name {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    padding: 4px 0;
    text-transform: uppercase;
}

.calendar-day {
    padding: 6px 4px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-day.today {
    background: linear-gradient(135deg, #8ec5fc, #e0c3fc);
    color: #1a1a2e;
    font-weight: 700;
}

.calendar-day.other-month {
    color: rgba(255, 255, 255, 0.2);
}

/* ===== TODO ===== */
.todo-input {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.todo-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px 14px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.todo-input input:focus {
    border-color: #8ec5fc;
}

.todo-input input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.todo-input button {
    background: linear-gradient(135deg, #8ec5fc, #e0c3fc);
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    color: #1a1a2e;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.todo-input button:hover {
    opacity: 0.85;
}

#todo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 14px;
}

.todo-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #8ec5fc;
    cursor: pointer;
}

.todo-item span {
    flex: 1;
    font-size: 0.9rem;
}

.todo-item.completed span {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.4);
}

.todo-delete {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.todo-delete:hover {
    color: #ff6b6b;
}

/* ===== CALENDAR EVENTS ===== */
.calendar-day.has-events {
    position: relative;
}

    .event-dot {
        display: block;
        width: 4px;
        height: 4px;
        background: #e0c3fc;
        border-radius: 50%;
        margin: 2px auto 0;
    }

    /* ===== MODAL ===== */
    .modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.6) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        backdrop-filter: blur(4px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 9999 !important;
    }

    .modal {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 16px !important;
        padding: 24px !important;
        width: 100% !important;
        max-width: 400px !important;
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
        position: relative !important;
        z-index: 10000 !important;
    }
    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .modal-header h3 {
        font-size: 1.1rem;
        font-weight: 600;
        color: #8ec5fc;
    }

    .modal-close {
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.4);
        cursor: pointer;
        font-size: 1rem;
        transition: color 0.2s;
    }

    .modal-close:hover {
        color: white;
    }

    .event-input {
        display: flex;
        gap: 10px;
        margin-bottom: 16px;
    }

    .event-input input {
        flex: 1;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        padding: 10px 14px;
        color: white;
        font-size: 0.9rem;
        outline: none;
        transition: border-color 0.2s;
    }

    .event-input input:focus {
        border-color: #8ec5fc;
    }

    .event-input input::placeholder {
        color: rgba(255, 255, 255, 0.3);
    }

    .event-input button {
        background: linear-gradient(135deg, #8ec5fc, #e0c3fc);
        border: none;
        border-radius: 10px;
        width: 40px;
        height: 40px;
        color: #1a1a2e;
        font-size: 1rem;
        cursor: pointer;
        transition: opacity 0.2s;
    }

    .event-input button:hover {
        opacity: 0.85;
    }

    .event-list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .event-item {
        display: flex;
        align-items: center;
        gap: 10px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        padding: 10px 14px;
    }

    .event-bullet {
        font-size: 0.4rem;
        color: #8ec5fc;
    }

    .event-item span {
        flex: 1;
        font-size: 0.9rem;
    }

    .event-delete {
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.2);
        cursor: pointer;
        font-size: 0.85rem;
        transition: color 0.2s;
    }

    .event-delete:hover {
        color: #ff6b6b;
    }

    .no-events {
        text-align: center;
        color: rgba(255, 255, 255, 0.3);
        font-size: 0.85rem;
        padding: 16px 0;
    }
    /* ===== FORECAST ===== */
    .forecast-container {
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .forecast-title {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: rgba(255, 255, 255, 0.4);
        margin-bottom: 12px;
    }

    .forecast-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .forecast-day {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        padding: 8px 4px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .forecast-date {
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.5);
        font-weight: 600;
    }

    .forecast-icon {
        font-size: 1.4rem;
    }

    .forecast-desc {
        font-size: 0.6rem;
        color: rgba(255, 255, 255, 0.4);
        text-transform: capitalize;
        line-height: 1.2;
    }

    .forecast-temps {
        display: flex;
        gap: 4px;
        align-items: center;
    }

    .forecast-max {
        font-size: 0.85rem;
        font-weight: 700;
        color: #8ec5fc;
    }

    .forecast-min {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.4);
    }
    /* ===== FORECAST TOGGLE ===== */
    .forecast-toggle {
        width: 100%;
        margin-top: 16px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 10px;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.85rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: background 0.2s;
    }

    .forecast-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .forecast-toggle i {
        transition: transform 0.3s ease;
    }
    /* ===== DAY INDICATORS ===== */
    .day-indicators {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2px;
        min-height: 8px;
    }

    .mood-indicator {
        font-size: 0.6rem;
        line-height: 1;
    }
    /* ===== PODCASTS ===== */
    .podcast-subtitle {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.3);
        margin-bottom: 12px;
        text-align: center;
    }

    .accordion {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .accordion-item {
        border-radius: 10px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.05);
    }

    .accordion-header {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        background: none;
        border: none;
        border-left: 3px solid transparent;
        color: white;
        cursor: pointer;
        transition: background 0.2s;
    }

    .accordion-header:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .accordion-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .accordion-name {
        font-size: 0.9rem;
        font-weight: 600;
    }

    .accordion-chevron {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.4);
        transition: transform 0.3s ease;
    }

    .accordion-body {
        max-height: 0px;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.2s ease, visibility 0.2s ease;
    }

    .accordion-body.open {
        opacity: 1;
        visibility: visible;
    }

    .accordion-content {
        padding: 12px 14px 14px 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .podcast-show {
        font-size: 0.78rem;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 4px;
    }

    .podcast-desc {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.65);
        margin-bottom: 12px;
    }

    .podcast-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 14px;
        border: 1px solid;
        border-radius: 8px;
        font-size: 0.8rem;
        text-decoration: none;
        transition: opacity 0.2s;
    }

    .podcast-link:hover {
        opacity: 0.75;
    }

    .vpn-hint {
        margin-top: 12px;
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.45);
        text-align: center;
    }

    .vpn-btn {
        display: block;
        width: 100%;
        margin-top: 10px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 10px;
        color: rgba(255, 255, 255, 0.75);
        font-size: 0.85rem;
        text-decoration: none;
        text-align: center;
        transition: background 0.2s;
    }

    .vpn-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .bbc-sounds-btn {
        display: block;
        width: 100%;
        margin-top: 14px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 10px;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.85rem;
        text-decoration: none;
        text-align: center;
        transition: background 0.2s;
    }

    .bbc-sounds-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .radio-subtitle {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.3);
        margin-bottom: 12px;
        text-align: center;
    }

    .radio-station-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .radio-station-link {
        display: flex;
        flex-direction: column;
        gap: 3px;
        text-decoration: none;
        padding: 10px 12px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: background 0.2s;
    }

    .radio-station-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .radio-station-btn {
        width: 100%;
        border: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
        cursor: pointer;
    }

    .radio-station-btn.active {
        border-color: rgba(142, 197, 252, 0.8);
        background: rgba(142, 197, 252, 0.12);
    }

    .radio-station-name {
        font-size: 0.88rem;
        color: #8ec5fc;
        font-weight: 600;
    }

    .radio-station-desc {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.6);
    }

    .radio-player-wrap {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .radio-player-placeholder,
    .radio-now-playing {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: 8px;
    }

    .radio-popup-warning {
        color: #f9c784;
    }

    .radio-open-link {
        display: inline-block;
        margin-top: 8px;
        font-size: 0.78rem;
        text-decoration: none;
        color: #8ec5fc;
    }

    .radio-open-link:hover {
        opacity: 0.8;
    }

    .clock-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .clock-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 12px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .clock-label {
        font-size: 0.82rem;
        color: rgba(255, 255, 255, 0.65);
    }

    .clock-time {
        font-size: 0.95rem;
        color: #8ec5fc;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

    .currency-status {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: 8px;
    }

    .currency-rate {
        font-size: 0.95rem;
        color: #e0c3fc;
        font-weight: 600;
        margin-bottom: 12px;
    }

    .currency-converter {
        display: grid;
        grid-template-columns: 1fr auto auto 1fr;
        gap: 8px;
        align-items: center;
    }

    #currency-amount,
    #currency-from,
    .currency-result {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        padding: 10px 12px;
        color: white;
        font-size: 0.85rem;
    }

    #currency-amount {
        outline: none;
    }

    #currency-amount:focus,
    #currency-from:focus {
        border-color: #8ec5fc;
    }

    .currency-arrow {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.95rem;
    }

    .currency-result {
        text-align: center;
        color: #8ec5fc;
        font-weight: 700;
    }

@media (max-width: 1100px) {
    body {
        padding: 16px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .left-column,
    .middle-column,
    .right-column {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    body {
        padding: 12px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px;
    }

    .date-time {
        align-items: flex-start;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .widget {
        padding: 18px;
    }

    .left-column,
    .middle-column,
    .right-column {
        gap: 10px;
    }
}

@media (max-width: 420px) {
    body {
        padding: 10px;
    }

    .dashboard-header h1 {
        font-size: 1.4rem;
    }

    #current-time {
        font-size: 1.3rem;
    }

    #current-date {
        font-size: 0.8rem;
    }

    .widget {
        padding: 14px;
        border-radius: 14px;
    }

    .widget-header h2 {
        font-size: 0.9rem;
    }

    .weather-temp {
        font-size: 2.4rem;
    }

    .todo-input input,
    .todo-input button,
    .event-input input,
    .event-input button,
    .forecast-toggle,
    .bbc-sounds-btn,
    .vpn-btn,
    .radio-station-link,
    #currency-amount,
    #currency-from,
    .currency-result {
        font-size: 0.8rem;
    }

    .currency-converter {
        grid-template-columns: 1fr;
    }

    .currency-arrow {
        display: none;
    }
}
