/* Custom Date Picker Styles */
.custom-datepicker-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem; /* Add spacing below date picker to match other form fields */
}

.custom-datepicker-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 0; /* Square corners to match other input boxes */
    background: #fff;
}

.custom-datepicker-input {
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    width: 120px;
    outline: none;
    background: transparent;
}

.custom-datepicker-btn {
    padding: 6px 10px;
    background: #f0f0f0;
    border: none;
    border-left: 1px solid #ccc;
    cursor: pointer;
    border-radius: 0; /* Square corners to match other input boxes */
}

.custom-datepicker-btn:hover {
    background: #e0e0e0;
}

.custom-datepicker-btn img {
    width: 18px;
    height: 18px;
}

.custom-datepicker-calendar {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px;
    display: none;
    min-width: 250px;
}

.custom-datepicker-calendar.show {
    display: block;
}

.custom-datepicker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 0;
}

.custom-datepicker-nav {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    color: #333;
}

.custom-datepicker-nav:hover {
    background: #f0f0f0;
    border-radius: 4px;
}

.custom-datepicker-title {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.custom-datepicker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.custom-datepicker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.custom-datepicker-day {
    text-align: center;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
}

.custom-datepicker-day:hover:not(.other-month):not(.selected) {
    background: #e9ecef;
}

.custom-datepicker-day.other-month {
    color: #ccc;
}

.custom-datepicker-day.today {
    background: #009dd9;
    color: #fff;
    font-weight: bold;
}

.custom-datepicker-day.selected {
    background: #0056b3;
    color: #fff;
}

.custom-datepicker-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 13px;
    color: #009dd9;
}
