/* MedVault Neo-Brutalist DD/MM/YYYY DatePicker */

.mv-date-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.mv-date-input-wrap .mv-input,
.mv-date-input-wrap .form-control,
.mv-date-input-wrap .neo-input {
    width: 100%;
    padding-right: 42px !important;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.mv-date-picker-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #475569;
    padding: 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.mv-date-picker-btn:hover {
    color: #0284c7;
    background: #f1f5f9;
}

/* Calendar Popover */
.mv-calendar-popover {
    position: absolute;
    z-index: 99999;
    background: #ffffff;
    border: 2px solid #0f172a;
    border-radius: 10px;
    box-shadow: 4px 4px 0px #0f172a;
    padding: 12px;
    width: 290px;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #0f172a;
    user-select: none;
    animation: mvPopIn 0.12s ease-out;
}

@keyframes mvPopIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.mv-cal-nav {
    background: #f8fafc;
    border: 1.5px solid #0f172a;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.1s ease;
}

.mv-cal-nav:hover {
    background: #e2e8f0;
    box-shadow: 1px 1px 0px #0f172a;
}

.mv-cal-selectors {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.mv-cal-select {
    padding: 3px 6px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid #0f172a;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    outline: none;
    font-family: inherit;
}

.mv-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.mv-cal-weekday {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    padding: 4px 0;
    text-transform: uppercase;
}

.mv-cal-day {
    padding: 6px 0;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.1s ease;
}

.mv-cal-day:hover:not(.empty) {
    background: #f1f5f9;
    border-color: #0f172a;
}

.mv-cal-day.today {
    color: #0284c7;
    font-weight: 700;
    text-decoration: underline;
}

.mv-cal-day.selected {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    box-shadow: 2px 2px 0px #0f172a;
}

.mv-cal-day.empty {
    cursor: default;
}

.mv-cal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.mv-cal-action-btn {
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 700;
    color: #0284c7;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mv-cal-action-btn:hover {
    background: #f0fdf4;
}
