/* ============================================
   Modern & Advanced Jalali Date Picker Styles
   ============================================ */

/* Main Container - Modern Glassmorphism Design */
jdp-container {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 1.25rem 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-family: 'Peyda', 'Dana', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

jdp-container .jdp-months,
jdp-container .jdp-years {
    width: auto !important;
}

jdp-container .jdp-month,
jdp-container .jdp-year {
    background: transparent !important;
    width: auto !important;
}


/* Years & Months Section - Modern Header Design */
.jdp-years,
.jdp-months {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    margin: 0 0.75rem 0.75rem 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    min-height: 50px !important;
    flex-direction: row-reverse !important;
    /* Reverse order so Next (plus) is on left, Previous (minus) is on right */
}

.jdp-years:hover,
.jdp-months:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px) !important;
}

/* Year & Month Containers - Ensure proper layout */
.jdp-year,
.jdp-month {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0.5rem !important;
}

/* Year & Month Selects - Modern Dropdown */
.jdp-year select,
.jdp-month select {
    background: transparent !important;
    border: none !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    padding: 0.5rem 1.5rem 0.5rem 0.5rem !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232d3748' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.25rem center !important;
    outline: none !important;
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    text-align: center !important;
    text-align-last: center !important;
    direction: rtl !important;
    overflow: visible !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

/* Ensure select options are readable */
.jdp-year select option,
.jdp-month select option {
    padding: 0.5rem !important;
    text-align: center !important;
    direction: rtl !important;
    background: #ffffff !important;
    color: #2d3748 !important;
}

.jdp-year select:hover,
.jdp-month select:hover {
    background-color: rgba(0, 0, 0, 0.03) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232d3748' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-position: right 0.25rem center !important;
    background-repeat: no-repeat !important;
}

.jdp-year select:focus,
.jdp-month select:focus {
    background-color: rgba(108, 91, 123, 0.08) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232d3748' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-position: right 0.25rem center !important;
    background-repeat: no-repeat !important;
    box-shadow: 0 0 0 3px rgba(108, 91, 123, 0.1) !important;
}

/* Navigation Icons - Modern Button Style with Chevrons */
.jdp-icon-plus,
.jdp-icon-minus {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    background: rgba(108, 91, 123, 0.1) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid transparent !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

/* Hide the original SVG icons */
.jdp-icon-plus svg,
.jdp-icon-minus svg {
    display: none !important;
}

/* Plus icon = Next (Right Chevron →) - positioned on left in RTL */
.jdp-icon-plus::before {
    content: '' !important;
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z' fill='%236C5B7B'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    transition: all 0.2s ease !important;
}

/* Minus icon = Previous (Left Chevron ←) - positioned on right in RTL */
.jdp-icon-minus::before {
    content: '' !important;
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z' fill='%236C5B7B'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    transition: all 0.2s ease !important;
}

.jdp-icon-plus:hover,
.jdp-icon-minus:hover {
    background: linear-gradient(135deg, #6C5B7B 0%, #D53F8C 100%) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(108, 91, 123, 0.3) !important;
}

.jdp-icon-plus:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z' fill='%23ffffff'/%3E%3C/svg%3E") !important;
}

.jdp-icon-minus:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z' fill='%236C5B7B'/%3E%3C/svg%3E") !important;
}

.jdp-icon-plus:active,
.jdp-icon-minus:active {
    transform: scale(0.95) !important;
}

.jdp-icon-minus.not-in-range {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.jdp-icon-minus.not-in-range:hover {
    transform: none !important;
    background: rgba(108, 91, 123, 0.1) !important;
}

.jdp-icon-minus.not-in-range:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z' fill='%236C5B7B'/%3E%3C/svg%3E") !important;
}

/* Days Container - Modern Grid Layout */
.jdp-days {
    padding: 0.75rem !important;
    background: transparent !important;
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 0.15rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure day names stay in one row */
.jdp-days>.jdp-day-name {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure all days stay in grid */
.jdp-days>.jdp-day {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Day Names Header - Modern Styling */
.jdp-day-name {
    background: linear-gradient(135deg, #6C5B7B 0%, #D53F8C 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 0 !important;
    text-align: center !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    box-shadow: 0 2px 4px rgba(108, 91, 123, 0.2) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    min-height: 40px !important;
}

/* Fix Friday alignment - ensure all day names stay in one row */
.jdp-day-name.last-week {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

/* Individual Days - Modern Card Style */
.jdp-day {
    background: #ffffff !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    color: #2d3748 !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    padding: 0 !important;
    margin: 2px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    text-align: center !important;
    line-height: 1 !important;
}

.jdp-day::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background: rgba(108, 91, 123, 0.1) !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.3s ease, height 0.3s ease !important;
    z-index: 0 !important;
}

.jdp-day:hover {
    background: linear-gradient(135deg, rgba(108, 91, 123, 0.1) 0%, rgba(213, 63, 140, 0.1) 100%) !important;
    border-color: rgba(108, 91, 123, 0.3) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(108, 91, 123, 0.2) !important;
    z-index: 1 !important;
}

.jdp-day:hover::before {
    width: 100% !important;
    height: 100% !important;
}

.jdp-day>* {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    text-align: center !important;
}

/* Selected Day - Modern Highlight */
.jdp-day.selected {
    background: linear-gradient(135deg, #6C5B7B 0%, #D53F8C 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(108, 91, 123, 0.4),
        0 0 0 3px rgba(108, 91, 123, 0.1) !important;
    transform: scale(1.08) !important;
    font-weight: 700 !important;
    z-index: 2 !important;
}

.jdp-day.selected::before {
    display: none !important;
}

/* Today - Modern Indicator */
.jdp-day.today {
    background: rgba(13, 110, 253, 0.1) !important;
    border: 2px solid #0d6efd !important;
    color: #0d6efd !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2) !important;
}

.jdp-day.today.selected {
    background: linear-gradient(135deg, #6C5B7B 0%, #D53F8C 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

/* Not in Month - Subtle Styling */
.jdp-day.not-in-month {
    color: #cbd5e0 !important;
    background: #f7fafc !important;
    opacity: 0.5 !important;
    cursor: default !important;
}

.jdp-day.not-in-month:hover {
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* Disabled Days */
.jdp-day.disabled-day {
    color: #a0aec0 !important;
    background: #f7fafc !important;
    cursor: not-allowed !important;
    opacity: 0.4 !important;
}

.jdp-day.disabled-day:hover {
    transform: none !important;
    background: #f7fafc !important;
    border-color: transparent !important;
}

/* Holiday Days - Special Styling */
.jdp-day.holly-day {
    color: #e53e3e !important;
    font-weight: 600 !important;
}

.jdp-day.holly-day.selected {
    color: #ffffff !important;
}

/* Time Container - Modern Design */
.jdp-time-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    margin: 0.75rem !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.jdp-time {
    flex: 1 !important;
}

.jdp-time select {
    width: 100% !important;
    background: #ffffff !important;
    border: 2px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232d3748' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 0.75rem center !important;
    padding-left: 2.5rem !important;
    outline: none !important;
}

.jdp-time select:hover {
    border-color: rgba(108, 91, 123, 0.3) !important;
    box-shadow: 0 2px 8px rgba(108, 91, 123, 0.1) !important;
}

.jdp-time select:focus {
    border-color: #6C5B7B !important;
    box-shadow: 0 0 0 3px rgba(108, 91, 123, 0.1) !important;
}

/* Footer Buttons - Modern Design */
.jdp-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 1rem !important;
    margin-top: 0.5rem !important;
    display: flex !important;
    gap: 0.75rem !important;
    border-radius: 0 0 16px 16px !important;
}

.jdp-btn-today,
.jdp-btn-empty {
    flex: 1 !important;
    background: linear-gradient(135deg, #6C5B7B 0%, #D53F8C 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(108, 91, 123, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.jdp-btn-today::before,
.jdp-btn-empty::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.6s ease, height 0.6s ease !important;
}

.jdp-btn-today:hover,
.jdp-btn-empty:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(108, 91, 123, 0.4) !important;
}

.jdp-btn-today:active,
.jdp-btn-empty:active {
    transform: translateY(0) !important;
}

.jdp-btn-today:active::before,
.jdp-btn-empty:active::before {
    width: 300px !important;
    height: 300px !important;
}

.jdp-btn-empty {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%) !important;
    color: #2d3748 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.jdp-btn-empty:hover {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

/* ============================================
   Dark Theme Support
   ============================================ */

[data-theme="dark"] jdp-container {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .jdp-years,
[data-theme="dark"] .jdp-months {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .jdp-year select,
[data-theme="dark"] .jdp-month select {
    background-color: transparent !important;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e2e8f0' d='M6 9L1 4h10z'/%3E%3C/svg%3E") no-repeat right 0.25rem center !important;
    color: #e2e8f0 !important;
    padding: 0.5rem 1.5rem 0.5rem 0.5rem !important;
    width: auto !important;
    min-width: auto !important;
}

[data-theme="dark"] .jdp-year select option,
[data-theme="dark"] .jdp-month select option {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .jdp-year select:hover,
[data-theme="dark"] .jdp-month select:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e2e8f0' d='M6 9L1 4h10z'/%3E%3C/svg%3E") no-repeat right 0.25rem center !important;
}

[data-theme="dark"] .jdp-year select:focus,
[data-theme="dark"] .jdp-month select:focus {
    background-color: rgba(108, 91, 123, 0.2) !important;
    background: rgba(108, 91, 123, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e2e8f0' d='M6 9L1 4h10z'/%3E%3C/svg%3E") no-repeat right 0.25rem center !important;
    box-shadow: 0 0 0 3px rgba(108, 91, 123, 0.2) !important;
}

[data-theme="dark"] .jdp-icon-plus,
[data-theme="dark"] .jdp-icon-minus {
    background: rgba(108, 91, 123, 0.2) !important;
}

[data-theme="dark"] .jdp-icon-plus::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z' fill='%23e2e8f0'/%3E%3C/svg%3E") !important;
}

[data-theme="dark"] .jdp-icon-minus::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z' fill='%23e2e8f0'/%3E%3C/svg%3E") !important;
}

[data-theme="dark"] .jdp-icon-plus:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z' fill='%23ffffff'/%3E%3C/svg%3E") !important;
}

[data-theme="dark"] .jdp-icon-minus:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z' fill='%23ffffff'/%3E%3C/svg%3E") !important;
}

[data-theme="dark"] .jdp-day {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

[data-theme="dark"] .jdp-day:hover {
    background: linear-gradient(135deg, rgba(108, 91, 123, 0.3) 0%, rgba(213, 63, 140, 0.3) 100%) !important;
    border-color: rgba(108, 91, 123, 0.5) !important;
}

[data-theme="dark"] .jdp-day.today {
    background: rgba(13, 110, 253, 0.2) !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .jdp-day.not-in-month {
    color: #4a5568 !important;
    background: #1a202c !important;
}

[data-theme="dark"] .jdp-day.disabled-day {
    color: #4a5568 !important;
    background: #1a202c !important;
}

[data-theme="dark"] .jdp-time-container {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .jdp-time select {
    background-color: #2d3748 !important;
    background: #2d3748 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e2e8f0' d='M6 9L1 4h10z'/%3E%3C/svg%3E") no-repeat left 0.75rem center !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] jdp-container .jdp-time {
    background: transparent !important;
}

[data-theme="dark"] jdp-container .jdp-month {
    background: transparent !important;
}

[data-theme="dark"] .jdp-time select:hover {
    border-color: rgba(108, 91, 123, 0.5) !important;
}

[data-theme="dark"] .jdp-time select:focus {
    border-color: #6C5B7B !important;
}

[data-theme="dark"] .jdp-footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .jdp-btn-empty {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .jdp-btn-empty:hover {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 481px) {
    jdp-container {
        border-radius: 20px 20px 0 0 !important;
        max-width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
    }

    .jdp-years,
    .jdp-months {
        margin: 0 0.5rem 0.5rem 0.5rem !important;
        padding: 0.5rem !important;
    }

    .jdp-day {
        padding: 0.5rem 0 !important;
        font-size: 0.875rem !important;
        border-radius: 10px !important;
    }

    .jdp-day-name {
        font-size: 0.75rem !important;
        padding: 0.5rem 0 !important;
        border-radius: 6px !important;
    }

    .jdp-time-container {
        margin: 0.5rem !important;
        padding: 0.75rem !important;
    }

    .jdp-footer {
        padding: 0.75rem !important;
    }

    .jdp-btn-today,
    .jdp-btn-empty {
        padding: 0.625rem 1rem !important;
        font-size: 0.875rem !important;
    }
}

/* ============================================
   Animation Enhancements
   ============================================ */

@keyframes jdpFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

jdp-container[style*="display: block"] {
    animation: jdpFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Smooth transitions for all interactive elements */
.jdp-day,
.jdp-icon-plus,
.jdp-icon-minus,
.jdp-btn-today,
.jdp-btn-empty,
.jdp-year select,
.jdp-month select,
.jdp-time select {
    will-change: transform, background-color, box-shadow !important;
}

/* ============================================
   Accessibility Improvements
   ============================================ */

.jdp-day:focus,
.jdp-icon-plus:focus,
.jdp-icon-minus:focus,
.jdp-btn-today:focus,
.jdp-btn-empty:focus {
    outline: 2px solid #6C5B7B !important;
    outline-offset: 2px !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    jdp-container {
        border: 2px solid #000000 !important;
    }

    .jdp-day {
        border: 1px solid #000000 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    jdp-container,
    .jdp-day,
    .jdp-icon-plus,
    .jdp-icon-minus,
    .jdp-btn-today,
    .jdp-btn-empty {
        transition: none !important;
        animation: none !important;
    }
}