* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 75;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #f7f7f7;
    min-height: 100vh;
    padding: 24px 18px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.countdown-section {
    display: flex;
    justify-content: space-around;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.countdown {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 10px;
    min-width: 250px;
}

.countdown h3 {
    margin-bottom: 10px;
    color: #ffd700;
}

.countdown-timer {
    font-size: 1.5em;
    font-weight: bold;
    color: #00ff88;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
}

.calendar-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.month {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.month-title {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffd700;
}

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

.day-header {
    text-align: center;
    font-weight: bold;
    padding: 8px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.8em;
}

.day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    font-size: 0.9em;
}

.day:hover {
    transform: scale(1.1);
    border-color: white;
    z-index: 10;
}

.day-number {
    font-weight: bold;
    margin-bottom: 2px;
}

.day-name {
    font-size: 0.6em;
    opacity: 0.8;
}

.work {
    background: #ff4757;
}

.vacation {
    background: #2ed573;
}

.travel {
    background: #ffa502;
}

.gift {
    background: #1e90ff;
}

.completion {
    background: #8e44ad;
    border: 3px solid #ffd700;
    animation: pulse 2s infinite;
}

.other-month {
    background: #6c7b7f;
    opacity: 0.5;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 20;
}

.at-most-right .tooltip {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.at-most-left .tooltip {
    left: 0;
    transform: translateX(0);
}

.day:hover .tooltip {
    opacity: 1;
}

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

    h1 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .countdown {
        font-size: 0.9em;
    }

    .countdown-timer {
        font-size: 1.2em;
    }

    .legend {
        gap: 12px;
    }

    .legend-item {
        font-size: 0.9em;
    }

    .countdown-section {
        flex-direction: column;
        align-items: center;
    }

    .month {
        padding: 12px;
    }

    .day-header {
        padding: 6px;
        font-size: 0.65em;
    }

    .day {
        font-size: 0.8em;
    }

    .day-number {
        font-size: 0.9em;
        margin-bottom: 1px;
    }
}