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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #000815 0%, #012035 110%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    touch-action: manipulation;
}

.calendar-container {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    position: relative;
    user-select: none;
}

.calendar-body {
    padding: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.calendar-header {
    background: rgba(255, 68, 68, 0.5);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.year-selector {
    background: none;         /* remove background */
    border: none;             /* remove border */
    color: white;             /* text color */
    font-size: 16px;          /* same as week-number */
    font-weight: bold;        /* match week-number */
    text-align: center;
    min-width: 50px;              /* match week-number */
    cursor: pointer;
    padding: 0;               /* optional */
}

.year-selector:focus {
    outline: none;            /* remove focus outline */
    background: rgba(255,255,255,0.1); /* optional subtle focus effect */
}

.week-dates {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.95;
}

.week-number-container {
    position: relative;
}

.week-number {
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: background-color 0.2s;
    display: inline-block;
    min-width: 80px;
}

.week-number:hover {
    background: rgba(255,255,255,0.1);
}

.week-input {
    font-size: 48px;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    border-radius: 8px;
    color: white;
    text-align: center;
    width: 80px;
    padding: 5px;
}

.week-input:focus {
    outline: none;
    background: rgba(255,255,255,0.3);
}

.week-input::placeholder {
    color: rgba(255,255,255,0.7);
}


.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.weekday {
    text-align: center;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    padding: 10px 0;
}

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

.date {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.date.current-week {
    background: rgba(255, 68, 68, 0.5);
    color: white;
}

.date.other-month {
    color: rgba(255, 255, 255, 0.3);
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s;
    color: black;
}

.nav-btn:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

.reset-btn {
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(16px);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.reset-btn:hover {
    background: rgba(255, 68, 68, 0.5);
    transform: translateY(-1px);
}

.swipe-hint {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: 10px;
}

@media (max-width: 400px) {
    .calendar-container {
        max-width: 320px;
    }
    
    .week-number {
        font-size: 40px;
    }
    
    .week-input {
        font-size: 40px;
        width: 70px;
    }
}