/* Date Range Time Picker CSS */
.daterange-picker {
    position: relative;
    display: inline-block;
    width: 100%;
}

.daterange-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    background-color: white;
}

.daterange-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.daterange-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-width: 600px;
    display: none;
}

.daterange-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.daterange-calendars {
    display: flex;
    gap: 20px;
}

.calendar {
    flex: 1;
}

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

.calendar-nav {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    color: #007bff;
}

.calendar-nav:hover {
    background-color: #f8f9fa;
}

.calendar-title {
    font-weight: 600;
    font-size: 16px;
}

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

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    padding: 8px 4px;
    font-size: 12px;
    color: #6c757d;
}

.calendar-day {
    text-align: center;
    padding: 8px 4px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    position: relative;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover {
    background-color: #e3f2fd;
}

.calendar-day.other-month {
    color: #adb5bd;
}

.calendar-day.today {
    background-color: #fff3cd;
    font-weight: 600;
}

.calendar-day.selected {
    background-color: #007bff !important;
    color: white !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.calendar-day.in-range {
    background-color: #e3f2fd;
}

.calendar-day.saturday {
    color: #0066cc;
    font-weight: 600;
}

.calendar-day.sunday {
    color: #dc3545;
    font-weight: 600;
}

.calendar-day.holiday {
    background-color: #ffebee;
    color: #d32f2f;
    font-weight: 600;
}

.calendar-day.holiday:hover {
    background-color: #ffcdd2;
}

.time-picker {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.time-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.time-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.time-input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: center;
}

.daterange-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.holiday-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
    max-height: 100px;
    overflow-y: auto;
}

.holiday-info h6 {
    margin: 0 0 5px 0;
    font-size: 13px;
    font-weight: 600;
}

.holiday-list {
    margin: 0;
    padding-left: 15px;
}

.holiday-list li {
    margin-bottom: 2px;
}

.tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1060;
    white-space: nowrap;
    pointer-events: none;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

@media (max-width: 768px) {
    .daterange-dropdown {
        min-width: 100%;
        left: 0;
        right: 0;
    }
    
    .daterange-calendars {
        flex-direction: column;
        gap: 15px;
    }
    
    .time-row {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}