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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.button-section {
    text-align: center;
    margin-bottom: 30px;
}

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.minus-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid white;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0.8;
}

.minus-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.minus-button:active {
    transform: scale(0.95);
}

.plus-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 5px solid white;
    color: white;
    font-size: 72px;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.plus-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.plus-button:active {
    transform: scale(0.95);
}

.today-count {
    color: white;
    font-size: 24px;
    font-weight: 500;
    margin-top: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.calendar-wrapper {
    display: flex;
    justify-content: center;
}

.calendar {
    background: linear-gradient(135deg, #6b9ff5 0%, #5a8de8 100%);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 650px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    color: white;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.calendar-header h2 {
    font-size: 28px;
    font-weight: 400;
    text-transform: capitalize;
    margin: 0;
}

.totals {
    display: flex;
    gap: 12px;
}

.total-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: white;
}

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

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

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

.day-name {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    padding: 10px 0;
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    min-height: 60px;
}

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

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

.calendar-day.today {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    border-radius: 15px;
}

.calendar-day.selected {
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.calendar-day.has-count {
    background: rgba(255, 255, 255, 0.15);
}

.day-number {
    font-size: 18px;
}

.count-badge {
    position: absolute;
    bottom: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #5a8de8;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .calendar {
        padding: 20px 15px;
        border-radius: 20px;
    }
    
    .calendar-header h2 {
        font-size: 20px;
    }
    
    .total-badge {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .nav-button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .day-name {
        font-size: 12px;
        padding: 5px 0;
    }
    
    .calendar-day {
        min-height: 50px;
    }
    
    .day-number {
        font-size: 14px;
    }
    
    .count-badge {
        font-size: 10px;
        padding: 2px 6px;
        bottom: 3px;
    }
    
    .plus-button {
        width: 90px;
        height: 90px;
        font-size: 50px;
    }
    
    .minus-button {
        width: 50px;
        height: 50px;
        font-size: 35px;
    }
    
    .today-count {
        font-size: 20px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .calendar {
        padding: 15px 10px;
    }
    
    .calendar-header h2 {
        font-size: 18px;
    }
    
    .totals {
        gap: 8px;
    }
    
    .total-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .nav-button {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .day-name {
        font-size: 11px;
    }
    
    .calendar-grid {
        gap: 5px;
    }
    
    .calendar-day {
        min-height: 40px;
        border-radius: 8px;
    }
    
    .day-number {
        font-size: 13px;
    }
    
    .count-badge {
        font-size: 9px;
        padding: 1px 5px;
        bottom: 2px;
    }
    
    .plus-button {
        width: 80px;
        height: 80px;
        font-size: 45px;
        border-width: 4px;
    }
    
    .minus-button {
        width: 45px;
        height: 45px;
        font-size: 30px;
        border-width: 2px;
    }
    
    .today-count {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .calendar {
        padding: 12px 8px;
    }
    
    .calendar-header h2 {
        font-size: 16px;
    }
    
    .total-badge {
        font-size: 9px;
        padding: 2px 7px;
    }
    
    .calendar-grid {
        gap: 3px;
    }
    
    .calendar-day {
        min-height: 35px;
    }
    
    .day-number {
        font-size: 12px;
    }
    
    .plus-button {
        width: 70px;
        height: 70px;
        font-size: 40px;
    }
    
    .minus-button {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}
