/* Calendar Styles */
body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(239,83,80,0.8) 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Navigation */
.nav-gradient {
    background: rgba(239, 83, 80, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-gradient .brand-logo {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.3rem;
    color: white;
}

.nav-gradient .brand-logo img {
    height: 40px;
    margin-right: 10px;
}

/* Footer */
.footer-gradient {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    margin-top: 0;
}

.main-container {
    margin-top: 30px;
    margin-bottom: 30px;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
}

.sidebar-card h5 {
    color: #ef5350;
    font-weight: 600;
    margin-bottom: 20px;
}

.view-mode-section {
    margin: 20px 0;
}

.view-mode-section label:first-child {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.calendar-preview-card {
    background: white;
    border-radius: 12px;
    min-height: 600px;
}

.calendar-container {
    padding: 20px;
}

/* Calendar Grid */
.calendar-month {
    margin-bottom: 40px;
}

.calendar-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ef5350;
}

.calendar-header h3 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #333;
    margin: 0;
}

.calendar-header .year {
    font-size: 1.5rem;
    color: #999;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #ddd;
    border: 1px solid #ddd;
}

.calendar-day-header {
    background: #ef5350;
    color: white;
    text-align: center;
    padding: 10px 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-day {
    background: white;
    min-height: 80px;
    padding: 8px;
    position: relative;
}

.calendar-day.other-month {
    background: #f5f5f5;
    opacity: 0.5;
}

.calendar-day.today {
    background: #fff3f3;
}

.calendar-day .day-number {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.calendar-day.today .day-number {
    color: #ef5350;
}

/* Year View */
.year-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mini-calendar {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mini-calendar h4 {
    text-align: center;
    color: #ef5350;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.mini-calendar .calendar-grid {
    gap: 2px;
}

.mini-calendar .calendar-day {
    min-height: 40px;
    padding: 4px;
    font-size: 0.8rem;
}

.mini-calendar .calendar-day-header {
    padding: 5px 2px;
    font-size: 0.7rem;
}

/* Buttons */
.gradient-btn {
    background: linear-gradient(135deg, #ef5350 0%, #e57373 100%);
    border: none;
}

.gradient-btn:hover {
    background: linear-gradient(135deg, #e57373 0%, #ef9a9a 100%);
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-text {
    color: white;
    font-size: 1.2rem;
    margin-top: 20px;
}

/* Background Image */
.calendar-container.has-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.calendar-container.has-background .calendar-month {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
}

/* Responsive */
@media only screen and (max-width: 992px) {
    .year-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 600px) {
    .year-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-header h3 {
        font-size: 1.8rem;
    }
}
