.dtp {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    font-size: 15px;
    user-select: none;
}

.dtp>.dtp-content {
    background: var(--bg-glass-opaque) !important;
    backdrop-filter: var(--blur-glass) !important;
    -webkit-backdrop-filter: var(--blur-glass) !important;
    max-width: 320px;
    box-shadow: var(--shadow-premium) !important;
    position: relative;
    left: 50%;
    border: 1px solid var(--border-glass) !important;
    border-radius: var(--radius-lg);
}

.dtp>.dtp-content>.dtp-date-view>header.dtp-header {
    background: rgba(var(--brand-primary-rgb), 0.08) !important;
    color: var(--brand-primary) !important;
    text-align: center;
    font-weight: 700;
    padding: 0.8rem 0.5rem;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
}

.dtp div.dtp-date,
.dtp div.dtp-time {
    background: rgba(var(--brand-secondary-rgb), 0.08) !important;
    text-align: center;
    color: var(--brand-secondary) !important;
    padding: 10px;
    border-bottom: 1px solid var(--border-glass);
}

.dtp div.dtp-date>div {
    padding: 0;
    margin: 0;
}

.dtp div.dtp-actual-month {
    font-size: 1.5em;
}

.dtp .p10>a .material-icons {
    font-size: 25px;
    margin-top: 6px;
}

.dtp div.dtp-actual-maxtime,
.dtp div.dtp-actual-num {
    font-size: 2.5em;
    line-height: 0.9;
    font-weight: bold;
}

.dtp div.dtp-actual-year {
    font-size: 1.5em;
    color: var(--brand-secondary) !important;
    opacity: 0.8;
}

.dtp div.dtp-picker {
    padding: 0.5em 1em;
    text-align: center;
}

.dtp div.dtp-actual-time,
.dtp div.dtp-picker-month {
    font-weight: 500;
    text-align: center;
    color: var(--text-primary) !important;
    padding-bottom: 10px !important;
    font-size: 1.1em;
}

.dtp .dtp-close {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
    line-height: 0;
}

.dtp .dtp-close>a {
    color: #b02a37 !important;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.dtp .dtp-close>a:hover {
    opacity: 1;
}

.dtp .dtp-close>a>i {
    font-size: 1.4rem !important;
}

.dtp table.dtp-picker-days {
    margin: 0 !important;
    min-height: 251px !important;
    border-collapse: collapse !important;
    width: 100% !important;
    background: transparent !important;
}


.dtp table.dtp-picker-days,
.dtp table.dtp-picker-days tr,
.dtp table.dtp-picker-days tr>td {
    background: transparent !important;
}

.dtp table.dtp-picker-days tr>td {
    font-weight: 600 !important;
    font-size: 0.85em !important;
    text-align: center !important;
    padding: 0.4em 0.2em !important;
    width: 14.28% !important;
    /* 7 columns */
    height: 36px !important;
    line-height: 36px !important;
}

.dtp table.dtp-picker-days tr>td>span.dtp-select-day {
    color: var(--text-muted) !important;
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

.dtp table.dtp-picker-days tr>td>a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.4em 0.5em 0.5em 0.6em;
    border-radius: 50% !important;
    display: inline-block !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 24px !important;
    /* Center text vertically */
    padding: 0 !important;
    /* Reset padding for proper centering */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    transition: all 0.2s ease !important;
}

.dtp table.dtp-picker-days tr>td>a:not(.selected):hover {
    background: rgba(var(--brand-primary-rgb), 0.1) !important;
    color: var(--brand-primary) !important;
}



.dtp table.dtp-picker-days tr>td>a.selected {
    background: var(--brand-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(var(--brand-primary-rgb), 0.3);
}

.dtp table.dtp-picker-days tr>th {
    color: var(--brand-primary) !important;
    text-align: center !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.5px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important;
    background: transparent !important;
}

.dtp .p10 {
    width: 10%;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dtp .p10>a {
    color: var(--brand-primary) !important;
    text-decoration: none;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dtp .p20 {
    width: 20%;
    display: inline-block;
}

.dtp .p60 {
    width: 60%;
    display: inline-block;
}

.dtp .p80 {
    width: 80%;
    display: inline-block;
}

.dtp a.dtp-meridien-am,
.dtp a.dtp-meridien-pm {
    position: relative;
    top: 10px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    text-decoration: none;
    background: var(--bg-glass-light) !important;
    border: 1px solid #c0c0c0 !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    font-size: 0.85em !important;
    transition: all 0.2s ease !important;
    margin: 0 5px !important;
}

.dtp a.dtp-meridien-am:hover,
.dtp a.dtp-meridien-pm:hover {
    background: rgba(var(--brand-primary-rgb), 0.08) !important;
    color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.dtp .dtp-actual-meridien a.selected,
.dtp .dtp-picker-time>a.dtp-select-hour.selected {
    background: var(--brand-primary) !important;
    color: #fff !important;
}

.dtp .dtp-picker-time {
    z-index: 10;
    position: absolute;
    width: 30px;
    height: 30px;
    font-size: 1em;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 500;
    text-align: center !important;
}

.dtp .dtp-picker-time>a {
    display: block;
    line-height: 30px !important;
    padding: 0 !important;
}

.dtp .dtp-picker-time>a.dtp-select-minute.sub-minute {
    display: block;
    padding: 0;
}

.dtp .dtp-picker-time>a.dtp-select-hour.sub-hour {
    font-size: 12px;
}

.dtp .dtp-picker-time>a.dtp-select-hour.disabled,
.dtp .dtp-picker-time>a.dtp-select-minute.disabled {
    color: var(--text-muted) !important;
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

.dtp .dtp-picker-time>a.dtp-select-minute.selected {
    background: var(--brand-primary) !important;
    color: #fff !important;
}

.dtp .dtp-picker-time>a.dtp-select-minute.sub-minute.selected {
    background: 0 0;
    color: var(--brand-primary) !important;
    font-weight: 700;
}

.dtp div.dtp-picker-clock {
    margin: 1em 1em 0;
    padding: 1em;
    border-radius: 50% !important;
    background: var(--bg-glass-light) !important;
    border: 1px solid var(--border-glass) !important;
}

.dtp-clock-center {
    width: 12px;
    height: 12px;
    background: var(--brand-primary) !important;
    border: 2px solid #fff;
    border-radius: 50%;
    position: absolute;
    z-index: 50;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.dtp .dtp-hand,
.dtp .dtp-hour-hand {
    position: absolute;
    width: 4px;
    margin-left: -2px;
    background: var(--brand-primary) !important;
    transform-origin: bottom;
    z-index: 1;
}

.dtp .dtp-minute-hand {
    width: 2px;
    margin-left: -1px;
    background: var(--brand-secondary) !important;
}

.dtp .dtp-hand.on {
    background: var(--brand-primary) !important;
}

/* Year Picker Premium Styling */
.dtp-picker-year {
    padding: 10px 0 !important;
    max-height: 250px;
    overflow-y: auto;
}

.dtp .year-picker-item {
    padding: 5px 0 !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    transition: all 0.2s ease !important;
    border-radius: var(--radius-sm) !important;
    margin: 2px 15px !important;
}

.dtp .year-picker-item:hover {
    background: rgba(var(--brand-primary-rgb), 0.08) !important;
    color: var(--brand-primary) !important;
}

.dtp .year-picker-item.active {
    background: var(--brand-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(var(--brand-primary-rgb), 0.2) !important;
}


.dtp-select-year-range {
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(var(--brand-primary-rgb), 0.03) !important;
    border: 1px solid var(--border-glass) !important;
    padding: 10px !important;
    border-radius: var(--radius-sm) !important;
    transition: all 0.2s ease !important;
}

.dtp-select-year-range:hover {
    background: rgba(var(--brand-primary-rgb), 0.08) !important;
    border-color: var(--brand-primary) !important;
}

.dtp-select-year-range i {
    color: var(--brand-primary) !important;
    font-size: 1.5rem !important;
}

.dtp .dtp-buttons {
    padding: 1em;
    text-align: right;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 9px !important;
    border-top: 1px solid var(--border-glass) !important;
}



.dtp-btn-now {
    display: none !important;
}

.dtp .hidden,
.dtp.hidden {
    display: none !important;
}

.dtp .invisible {
    visibility: hidden;
}

.dtp .left {
    float: left;
}

.dtp .right {
    float: right;
}

.dtp .clearfix {
    clear: both;
}

.dtp .center {
    text-align: center;
}
