/* Desktop Widgets */
.widgets-container {
    position: absolute;
    top: 40px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 5;
    animation: fadeInRight 0.6s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.widget {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.widget-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.widget-content {
    padding: 16px;
}

/* Clock Widget */
.clock-widget {
    width: 280px;
}

.clock-time {
    font-size: 56px;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
}

.clock-date {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.clock-location {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Calendar Widget */
.calendar-widget {
    width: 280px;
}

.calendar-month {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

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

.calendar-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

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

.calendar-day.today {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.calendar-day.other-month {
    opacity: 0.3;
}

/* Weather Widget */
.weather-widget {
    width: 280px;
}

.weather-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.weather-icon {
    font-size: 64px;
    line-height: 1;
}

.weather-temp {
    font-size: 48px;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1;
}

.weather-description {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: capitalize;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.weather-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.detail-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Responsive widgets */
@media (max-width: 1200px) {
    .widgets-container {
        right: 10px;
        top: 30px;
        gap: 12px;
    }

    .widget {
        width: 240px !important;
    }

    .clock-time {
        font-size: 48px;
    }

    .weather-temp {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .widgets-container {
        display: none;
    }
}