

:root {
    --vf-accent: #0052ff;
    --vf-accent-rgb: 0, 82, 255;
    --vf-text: #1a1a1a;
    --vf-muted: #6b6b6b;
    --vf-radius: 18px;
}

.vf-date-field {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.vf-date-field input.vf-date-input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-right: 44px;
    appearance: none;
    -webkit-appearance: none;
}

.vf-date-field input::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}
.vf-date-field input::-webkit-inner-spin-button,
.vf-date-field input::-webkit-clear-button {
    display: none;
    -webkit-appearance: none;
}

.vf-date-trigger {
    position: absolute;
    top: 50%; right: 8px;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    border: none; border-radius: 50%;
    background: rgba(var(--vf-accent-rgb), 0.08);
    color: var(--vf-accent);
    cursor: pointer;
    transition: background 0.15s ease;
}
.vf-date-trigger:hover { background: rgba(var(--vf-accent-rgb), 0.16); }
.vf-date-trigger svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.vf-cal {
    position: fixed;
    z-index: 1200;
    width: 336px;
    max-width: calc(100vw - 24px);
    padding: 16px;
    border-radius: var(--vf-radius);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    box-shadow: 0 18px 50px rgba(20, 24, 34, 0.18);
    color: var(--vf-text);
    font-family: inherit;
    animation: vfCalIn 0.14s ease-out;
}
@keyframes vfCalIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.vf-cal-head {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 10px;
}
.vf-cal-title {
    flex: 1;
    padding: 10px 12px;
    border: none; border-radius: var(--vf-radius);
    background: transparent;
    color: var(--vf-text);
    font: inherit; font-size: 1.05rem; font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.vf-cal-title:hover { background: rgba(var(--vf-accent-rgb), 0.08); }
.vf-cal-nav {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    border: none; border-radius: 50%;
    background: transparent;
    color: var(--vf-muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.vf-cal-nav:hover { background: rgba(var(--vf-accent-rgb), 0.1); color: var(--vf-accent); }
.vf-cal-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vf-cal-nav[disabled] { opacity: 0.3; cursor: default; }

.vf-cal-week {
    display: grid; grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}
.vf-cal-week span {
    text-align: center;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--vf-muted);
}

.vf-cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.vf-cal-grid.is-months { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vf-cal-grid.is-years  { grid-template-columns: repeat(4, 1fr); gap: 6px; }

.vf-cal-cell {
    height: 42px;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    border: none; border-radius: 12px;
    background: transparent;
    color: var(--vf-text);
    font: inherit; font-size: 0.98rem;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}
.vf-cal-grid.is-months .vf-cal-cell,
.vf-cal-grid.is-years .vf-cal-cell { height: 48px; font-size: 0.95rem; }

.vf-cal-cell:hover { background: rgba(var(--vf-accent-rgb), 0.12); }
.vf-cal-cell.is-muted { color: rgba(0, 0, 0, 0.28); }
.vf-cal-cell.is-today {
    box-shadow: inset 0 0 0 1.5px rgba(var(--vf-accent-rgb), 0.45);
    font-weight: 600;
}
.vf-cal-cell.is-selected {
    background: var(--vf-accent);
    color: #fff;
    font-weight: 600;
    box-shadow: none;
}
.vf-cal-cell[disabled] { opacity: 0.25; cursor: default; background: transparent; }

.vf-cal-time { margin-top: 14px; }
.vf-cal-time-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem; font-weight: 600;
    color: var(--vf-muted);
}
.vf-cal-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.vf-cal-chip {
    padding: 9px 14px;
    border: none; border-radius: 999px;
    background: rgba(var(--vf-accent-rgb), 0.08);
    color: var(--vf-text);
    font: inherit; font-size: 0.86rem;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}
.vf-cal-chip:hover { background: rgba(var(--vf-accent-rgb), 0.18); }
.vf-cal-chip.is-selected { background: var(--vf-accent); color: #fff; font-weight: 600; }

.vf-cal-time-row {
    display: flex; align-items: center; gap: 6px;
}
.vf-cal-time-row input {
    width: 62px; height: 46px;
    padding: 0;
    border: none; border-radius: 12px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--vf-text);
    font: inherit; font-size: 1.15rem; font-weight: 600;
    text-align: center;
    -moz-appearance: textfield;
}
.vf-cal-time-row input::-webkit-inner-spin-button { display: none; -webkit-appearance: none; }
.vf-cal-time-row input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--vf-accent-rgb), 0.4);
}
.vf-cal-time-sep { font-size: 1.15rem; font-weight: 600; color: var(--vf-muted); }
.vf-cal-time-unit { margin-left: 4px; font-size: 0.86rem; color: var(--vf-muted); }

.vf-cal-foot {
    display: flex; align-items: center; gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
}
.vf-cal-foot-btn {
    padding: 10px 14px;
    border: none; border-radius: 999px;
    background: transparent;
    color: var(--vf-muted);
    font: inherit; font-size: 0.86rem;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}
.vf-cal-foot-btn:hover { background: rgba(0, 0, 0, 0.05); color: var(--vf-text); }
.vf-cal-apply {
    margin-left: auto;
    padding: 10px 20px;
    border: none; border-radius: 999px;
    background: var(--vf-accent);
    color: #fff;
    font: inherit; font-size: 0.88rem; font-weight: 600;
    cursor: pointer;
}
.vf-cal-apply:hover { filter: brightness(1.08); }

@media (max-width: 480px) {
    .vf-cal { width: calc(100vw - 20px); padding: 14px; }
    .vf-cal-cell { height: 46px; }
}
