.responsive-calendar {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(60, 72, 88, 0.12);
    padding: 32px 24px;
    margin: 32px 0;
    width: 100%;
    max-width: none;
}
.event-cell {
    background: #e0f2fe !important;
    color: #2563eb;
    font-weight: bold;
}
.event-cell:hover {
    background: #bae6fd !important;
}
.event-bar {
    width: 100%;
    height: 44px;
    background: rgba(37,99,235,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 8px 0 12px 0;
    position: relative;
    z-index: 1;
    border-radius: 0;
    box-sizing: border-box;
    padding: 0;
}
.event-bar.start {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}
.event-bar.end {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}
.event-bar-cell {
    position: relative;
    padding: 0 !important;
}
.event-name {
    font-size: 0.8em;
    font-weight: normal;
    color: #2563eb;
    margin-bottom: 0px;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.event-range-blue {
    color: #2563eb;
    font-style: italic;
    font-weight: normal;
    font-size: 0.75em;
    margin-top: 0px;
    display: block;
    text-align: center;
}
.calendar-day-blue {
    color: #2563eb !important;
    font-weight: bold;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    gap: 16px;
}

.cal-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #6366f1;
    color: #fff;
    border-radius: 50%;
    font-size: 1.3em;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(99,102,241,0.08);
    transition: background 0.2s, color 0.2s;
    border: none;
}

.cal-arrow:hover {
    background: #dc2626;
    color: #fff;
}

.cal-arrow svg {
    width: 22px;
    height: 22px;
}

.cal-title {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 2.2em;
    color: #3b82f6;
    font-weight: bold;
    letter-spacing: 1px;
}

.calendar-select-form {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

.calendar-select-form select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid #6366f1;
    font-size: 1em;
    background: #fff;
    color: #6366f1;
    font-weight: 600;
    min-width: 120px;
    max-width: 140px;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-select-form select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.cal-select-btn {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    background: #6366f1;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1em;
}

.cal-select-btn:hover {
    background: #3b82f6;
    transform: translateY(-1px);
}

.cal-today-btn {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    background: #e0e7ff;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 4px rgba(59,130,246,0.08);
    font-size: 1em;
}

.cal-today-btn:hover {
    background: #c7d2fe;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.responsive-calendar table {
    table-layout: fixed;
    border-collapse: collapse;
    width: 100%;
}

.responsive-calendar th {
    background: #6366f1;
    color: #fff;
    font-weight: 700;
    padding: 6px 0;
    border-radius: 6px 6px 0 0;
    font-size: 1.3em;
    text-align: center;
    vertical-align: middle;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    height: auto;
    line-height: 1;
}

.responsive-calendar td,
.calendar-cell {
    min-width: 100px;
    min-height: 140px;
    max-width: 100px;
    max-height: 140px;
    border-radius: 0 !important;
    border: 1px solid #e0e0e0;
    padding: 14px 8px;
    font-size: 1em;
    transition: background 0.2s, color 0.2s;
    position: relative;
    text-align: center;
    word-break: break-word;
    color: #222;
    background: #fff;
    box-sizing: border-box;
    vertical-align: top;
}

.holiday-cell {
    background: #fff5f5;
    color: #dc2626;
    font-weight: bold;
}

.holiday-cell:hover {
    background: #ffe4e6;
}

.calendar-today {
    border: 2px solid #1976d2;
    background: #e3f2fd;
    box-shadow: 0 0 8px #1976d2;
}

.holiday-bar {
    width: 100%;
    height: 44px;
    background: rgba(220,38,38,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 8px 0 12px 0;
    position: relative;
    z-index: 1;
    border-radius: 0;
    box-sizing: border-box;
    padding: 0;
}

.holiday-bar.start {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.holiday-bar.end {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.holiday-bar-cell {
    position: relative;
    padding: 0 !important;
}

.holiday-name {
    font-size: 0.8em;
    font-weight: normal;
    color: #d00;
    margin-bottom: 0px;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.holiday-range-red {
    color: #d00;
    font-style: italic;
    font-weight: normal;
    font-size: 0.75em;
    margin-top: 0px;
    display: block;
    text-align: center;
}

.calendar-day-num {
    font-size: 1.1em;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.calendar-day-red {
    color: #d00;
    font-weight: bold;
}

.holiday-bar-cell .calendar-day-num {
    margin-top: 10px;
}

.responsive-calendar tbody tr {
    height: 100px;
}

/* Loading state */
.responsive-calendar.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.responsive-calendar.loading::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
}

/* Past dates styling */
.calendar-past-date {
    opacity: 0.4;
}

.calendar-past-date .calendar-day-num {
    color: #9ca3af !important;
}

/* Current date styling */
.calendar-today:not(.calendar-sunday) {
    border: 2px solid #1976d2 !important;
    background: #e3f2fd !important;
    box-shadow: 0 0 8px rgba(25, 118, 210, 0.3) !important;
}

.calendar-today:not(.calendar-sunday) .calendar-day-num {
    color: #1976d2 !important;
    font-weight: 800 !important;
    font-size: 1.2em !important;
}

.calendar-today.calendar-sunday {
    border: 3px solid #dc2626 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.4) !important;
}

.calendar-today.holiday-cell:not(.calendar-sunday) {
    border: 2px solid #1976d2 !important;
    background: #e3f2fd !important;
    box-shadow: 0 0 8px rgba(25, 118, 210, 0.3) !important;
}

.calendar-today.holiday-cell:not(.calendar-sunday) .calendar-day-num {
    color: #1976d2 !important;
    font-weight: 800 !important;
    font-size: 1.2em !important;
}

/* Sunday styling */
.calendar-sunday {
    background: #fff5f5 !important;
    color: #dc2626;
    font-weight: bold;
}

.calendar-sunday:hover {
    background: #ffe4e6 !important;
}

.calendar-sunday .calendar-day-num {
    color: #dc2626 !important;
    font-weight: bold !important;
}

/* Holiday styling */
.holiday-cell:not(.calendar-today):not(.calendar-sunday) {
    background: #fff5f5 !important;
    color: #dc2626;
    font-weight: bold;
}

.holiday-cell:not(.calendar-today):not(.calendar-sunday):hover {
    background: #ffe4e6 !important;
}

.calendar-past-date.calendar-sunday .calendar-day-num {
    color: #dc2626 !important;
    opacity: 0.6;
}

/* Hover effects */
.calendar-today:not(.calendar-sunday):not(.holiday-cell):hover {
    background: #bbdefb !important;
    transform: scale(1.05);
    transition: all 0.2s ease;
    cursor: pointer;
}

.calendar-cell:not(.calendar-sunday):not(.holiday-cell):not(.calendar-today):not(.calendar-past-date):hover {
    background: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    transform: scale(1.02);
    transition: all 0.2s ease;
    cursor: pointer;
}

.calendar-sunday:not(.calendar-past-date):not(.calendar-today):hover {
    background: #ffe4e6 !important;
    transform: scale(1.02);
    transition: all 0.2s ease;
    cursor: pointer;
}

.holiday-cell:not(.calendar-past-date):not(.calendar-today):hover {
    background: #ffe4e6 !important;
    transform: scale(1.02);
    transition: all 0.2s ease;
    cursor: pointer;
}

.calendar-today.calendar-sunday:hover {
    background: #fecaca !important;
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.5) !important;
    transition: all 0.2s ease;
}

.calendar-today.holiday-cell:not(.calendar-sunday):hover {
    background: #fecaca !important;
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.5) !important;
    transition: all 0.2s ease;
}

.calendar-cell {
    transition: all 0.2s ease;
}

.calendar-day-num {
    transition: all 0.2s ease;
}

/* MOBILE RESPONSIVE STYLES - APP-LIKE DESIGN */
@media screen and (max-width: 768px) {
    .responsive-calendar {
        padding: 16px !important;
        margin: 12px 0 !important;
        border-radius: 12px !important;
        font-size: 14px !important;
        overflow-x: auto !important;
        background: #f8fafc !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.1) !important;
    }
    
    .cal-title {
        font-size: 1.4em !important;
        margin: 8px 0 6px 0 !important;
        text-align: center !important;
    }
    
    .calendar-nav {
        margin-bottom: 10px !important;
        gap: 8px !important;
    }
    
    .cal-arrow {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9em !important;
    }
    
    .cal-arrow svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    /* COMPACT FORM STYLING */
    .calendar-select-form {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin-bottom: 10px !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .calendar-select-form select {
        width: auto !important;
        max-width: 110px !important;
        min-width: 90px !important;
        font-size: 0.85em !important;
        padding: 6px 8px !important;
        margin: 0 !important;
        flex: none !important;
    }
    
    .cal-select-btn,
    .cal-today-btn {
        width: auto !important;
        max-width: 60px !important;
        min-width: 50px !important;
        font-size: 0.8em !important;
        padding: 6px 8px !important;
        margin: 0 !important;
        flex: none !important;
    }
    
    .cal-today-btn {
        font-size: 0.75em !important;
        padding: 6px 10px !important;
        max-width: 70px !important;
    }
    
    .responsive-calendar table {
        font-size: 1em !important;
        width: 100% !important;
        border-spacing: 2px !important;
        border-collapse: separate !important;
        margin-top: 8px !important;
    }
    
    .responsive-calendar th {
        font-size: 0.9em !important;
        padding: 8px 4px !important;
        height: 35px !important;
        border-radius: 6px !important;
    }
    
    .responsive-calendar td,
    .calendar-cell {
        min-width: auto !important;
        max-width: none !important;
        width: 14.28% !important;
        min-height: 60px !important;
        max-height: 80px !important;
        padding: 8px 4px !important;
        font-size: 0.9em !important;
        border-radius: 6px !important;
        border: 1px solid #e2e8f0 !important;
        background: #ffffff !important;
    }
    
    .calendar-day-num {
        font-size: 1.1em !important;
        margin: 4px 0 !important;
        font-weight: 700 !important;
    }
    
    .holiday-bar {
        height: 24px !important;
        margin: 4px 0 !important;
        border-radius: 4px !important;
    }
    
    .holiday-name {
        font-size: 0.7em !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
    }
    
    .holiday-range-red {
        font-size: 0.6em !important;
    }
    
    .responsive-calendar tbody tr {
        height: auto !important;
    }
    
    /* Mobile specific styling for better readability */
    .calendar-sunday {
        background: #fef2f2 !important;
        border: 1px solid #f87171 !important;
    }
    
    .calendar-today {
        background: #dbeafe !important;
        border: 2px solid #3b82f6 !important;
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.3) !important;
    }
    
    .holiday-cell {
        background: #fef2f2 !important;
        border: 1px solid #f87171 !important;
    }
    
    /* Disable hover effects on mobile */
    .calendar-cell:hover,
    .calendar-today:hover,
    .calendar-sunday:hover,
    .holiday-cell:hover {
        transform: none !important;
        background: inherit !important;
    }
}

/* Extra small mobile - even more compact */
@media screen and (max-width: 480px) {
    .responsive-calendar {
        padding: 10px !important;
        font-size: 12px !important;
        margin: 6px !important;
    }
    
    .cal-title {
        font-size: 1.2em !important;
        margin: 6px 0 4px 0 !important;
    }
    
    .cal-arrow {
        width: 28px !important;
        height: 28px !important;
    }
    
    .cal-arrow svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    .calendar-select-form {
        gap: 4px !important;
        margin-bottom: 8px !important;
    }
    
    .calendar-select-form select {
        max-width: 85px !important;
        min-width: 75px !important;
        font-size: 0.8em !important;
        padding: 4px 6px !important;
    }
    
    .cal-select-btn {
        max-width: 45px !important;
        min-width: 40px !important;
        font-size: 0.7em !important;
        padding: 4px 6px !important;
    }
    
    .cal-today-btn {
        font-size: 0.7em !important;
        padding: 4px 8px !important;
        max-width: 55px !important;
    }
    
    .responsive-calendar table {
        margin-top: 6px !important;
    }
    
    .responsive-calendar th {
        font-size: 0.8em !important;
        height: 30px !important;
        padding: 6px 2px !important;
    }
    
    .responsive-calendar td,
    .calendar-cell {
        min-height: 50px !important;
        max-height: 70px !important;
        padding: 6px 2px !important;
    }
    
    .calendar-day-num {
        font-size: 1em !important;
        margin: 2px 0 !important;
    }
    
    .holiday-bar {
        height: 20px !important;
        margin: 2px 0 !important;
    }
    
    .holiday-name {
        font-size: 0.65em !important;
    }
}