/* BOE Custom Date Picker Standalone Styles */

/* Scope all styles to .boe-datepicker to avoid global pollution */
.boe-datepicker .text-primary {
    color: #3279a8 !important;
}

.boe-datepicker.datepicker-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%; /* Allow it to fill container */
}

.boe-datepicker.datepicker-wrapper input {
    width: 100%;
    padding-right: 2.5rem !important; /* Space for the icon */
    cursor: pointer;
    background-color: #fff !important;
}

.boe-datepicker .calendar-icon {
    position: absolute;
    right: 0.75rem;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: #6c757d;
    z-index: 5;
}

.boe-datepicker .calendar-icon i {
    font-size: 1.2rem;
    line-height: 1;
}

.boe-datepicker .datepicker-popup {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-top: 5px;
    border-radius: 4px;
    overflow: hidden;
    font-family: inherit;
}

.boe-datepicker .datepicker-popup.hidden {
    display: none;
}

.boe-datepicker .datepicker-header {
    background-color: #2B84B1;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.boe-datepicker .month-year-selector {
    font-weight: bold;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.boe-datepicker .dropdown-arrow {
    margin-left: 5px;
    font-size: 10px;
}

.boe-datepicker .nav-arrows {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.boe-datepicker .nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boe-datepicker .nav-btn:hover {
    opacity: 0.8;
}

.boe-datepicker .datepicker-body {
    padding: 10px;
}

.boe-datepicker .days-of-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 10px;
    color: #333;
}

.boe-datepicker .days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}

.boe-datepicker .day {
    text-align: center;
    padding: 8px 0;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
    color: #333;
    transition: background-color 0.2s, color 0.2s;
}

.boe-datepicker .day:hover {
    background-color: #e9ecef;
}

.boe-datepicker .day.selected {
    background-color: #3279a8 !important;
    color: white !important;
}

.boe-datepicker .day.today {
    font-weight: bold;
    color: #3279a8;
    background-color: #f8f9fa;
    border: 1px solid rgba(50, 121, 168, 0.5) !important;
}

.boe-datepicker .day.other-month {
    color: #ccc;
}

.boe-datepicker .datepicker-footer {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

.boe-datepicker .datepicker-footer .btn-primary {
    background-color: #3279a8 !important;
    border-color: #868e96 !important;
    padding-left: 15px;
    padding-right: 15px;
}

.boe-datepicker .datepicker-footer .btn-primary:hover {
    background-color: #1571B3 !important;
}

.boe-datepicker .datepicker-footer .btn-secondary {
    padding-left: 15px;
    padding-right: 15px;
}
