/* DateTimePicker Control Styles */

/* Wrapper */
.dtp-wrapper {
    position: relative;
    width: 100%;
}

/* Input Group */
.dtp-input-group {
    position: relative;
    display: flex;
    width: 100%;
}

.dtp-display {
    width: 100%;
    padding-right: 56px !important;
    cursor: pointer;
    background-color: #fff !important;
    text-align: center;
}

.dtp-display:focus {
    border-color: #00A1BE;
    box-shadow: 0 0 0 0.2rem rgba(0, 161, 190, 0.25);
}

.dtp-display.disabled {
    background-color: #e9ecef !important;
    cursor: not-allowed;
}

/* Clear Icon (X) */
.dtp-clear {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    cursor: pointer;
    font-size: 12px;
    z-index: 1;
    display: none;
}

.dtp-clear:hover {
    color: #CC3333;
}

.dtp-wrapper.dtp-has-value .dtp-clear {
    display: block;
}

.dtp-wrapper.dtp-disabled .dtp-clear {
    display: none;
}

/* Calendar/Clock Icon */
.dtp-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    cursor: pointer;
    z-index: 0;
}

.dtp-icon:hover {
    color: #00A1BE;
}

.dtp-icon-time {
    display: none;
}

/* Dropdown Panel */
.dtp-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    min-width: 280px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-top: 4px;
}

.dtp-dropdown.open {
    display: block;
}

/* Popup opens above the input */
.dtp-popup-top .dtp-dropdown {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 4px;
}

/* Date Panel */
.dtp-date-panel {
    padding: 12px;
}

.dtp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dtp-month-year {
    font-weight: 600;
    font-size: 1rem;
    color: #27282A;
}

.dtp-nav {
    background: none;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    color: #6c757d;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.dtp-nav:hover {
    background-color: #00A1BE;
    color: #fff;
}

/* Weekday Headers */
.dtp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 8px;
}

.dtp-weekdays span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    padding: 4px 0;
}

/* Calendar Days */
.dtp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.dtp-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
    color: #27282A;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dtp-day:hover:not(.empty):not(.selected):not(.disabled) {
    background-color: rgba(0, 161, 190, 0.1);
}

.dtp-day.empty {
    cursor: default;
}

.dtp-day.today {
    font-weight: 700;
    color: #00A1BE;
}

.dtp-day.selected {
    background-color: #00A1BE;
    color: #fff;
    font-weight: 600;
}

.dtp-day.selected.today {
    color: #fff;
}

.dtp-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: transparent;
}

.dtp-day.disabled:hover {
    background-color: transparent;
}

/* Time Panel */
.dtp-time-panel {
    padding: 12px;
    border-top: 1px solid #dee2e6;
}

.dtp-time-selectors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.dtp-time-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dtp-time-nav {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: #6c757d;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.dtp-time-nav:hover {
    background-color: #00A1BE;
    color: #fff;
}

.dtp-hour,
.dtp-minute {
    width: 48px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 4px;
    color: #27282A;
}

.dtp-hour:focus,
.dtp-minute:focus {
    outline: none;
    border-color: #00A1BE;
    box-shadow: 0 0 0 0.2rem rgba(0, 161, 190, 0.25);
}

.dtp-time-separator {
    font-size: 1.5rem;
    font-weight: 600;
    color: #27282A;
    padding: 0 4px;
}

.dtp-ampm-toggle {
    width: 48px;
    padding: 8px 4px;
    font-size: 1rem;
    font-weight: 600;
    background-color: #00A1BE;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dtp-ampm-toggle:hover {
    background-color: #008a9e;
}

/* Selection Highlight */
.dtp-wrapper input::selection,
.dtp-wrapper input::-moz-selection {
    background-color: #00A1BE;
    color: #fff;
}
