/* Nomu Premium Time Picker Styles */
/* Extracted from nomu_app.css for global availability */

.nomu-timepicker-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nomu-timepicker-container.active {
    display: flex !important;
    opacity: 1;
}

.nomu-timepicker-modal {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--nomu-border);
    border-radius: 24px;
    width: 320px;
    padding: 12px 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}

.nomu-timepicker-container.active .nomu-timepicker-modal {
    transform: translateY(0);
}

.nomu-timepicker-header {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0px;
}

.nomu-timepicker-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: #38bdf8;
    /* var(--nomu-accent) fallback */
}

.nomu-timepicker-selectors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 0px;
    position: relative;
}

.nomu-timepicker-wheels-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    flex: 1;
    justify-content: center;
}

.nomu-timepicker-wheel-container {
    flex: 1;
    height: 250px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent 10%, black 40%, black 60%, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 10%, black 40%, black 60%, transparent 90%);
}

.nomu-timepicker-wheel {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 100px 0;
}

.nomu-timepicker-item {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    /* var(--nomu-muted) fallback */
    transition: opacity 0.1s linear;
    transform-origin: center center;
}

.nomu-timepicker-item.active {
    color: #f8fafc;
    /* var(--nomu-text) fallback */
    font-weight: 900;
}

.nomu-timepicker-separator {
    font-size: 1.5rem;
    font-weight: 900;
    color: #38bdf8;
    padding-bottom: 4px;
}

.nomu-timepicker-selection-overlay {
    position: absolute;
    top: 50%;
    left: -4px;
    right: -4px;
    height: 48px;
    margin-top: -24px;
    border: 2px solid #000000;
    background: rgba(0, 0, 0, 0.05);
    pointer-events: none;
    border-radius: 8px;
    z-index: 10;
}

.nomu-timepicker-ampm {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nomu-timepicker-ampm-btn {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.nomu-timepicker-ampm-btn.active {
    background: #38bdf8;
    color: #ffffff;
    border-color: #38bdf8;
}

.nomu-timepicker-footer {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.nomu-timepicker-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    font-weight: 950;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    margin-bottom: 10px;
}

.nomu-timepicker-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.nomu-timepicker-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.28);
}

.nomu-timepicker-btn-confirm {
    background: #38bdf8;
    color: #ffffff;
}

.nomu-timepicker-btn-confirm:hover {
    background: #7dd3fc;
    transform: translateY(-1px);
}

.nomu-timepicker-btn:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.75);
    outline-offset: 2px;
}

html[data-theme="white"] .nomu-timepicker-footer {
    border-top-color: rgba(148, 163, 184, 0.45);
}

html[data-theme="white"] .nomu-timepicker-btn-cancel {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="white"] .nomu-timepicker-btn-cancel:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.nomu-timepicker-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #38bdf8;
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s;
    z-index: 5;
}

.nomu-timepicker-toggle:hover {
    color: #7dd3fc;
    transform: translateY(-50%) scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .nomu-timepicker-modal {
        width: 90%;
        max-width: 340px;
    }
}

/* Hide native browser icons for time/date inputs to prevent duplicates */
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-inner-spin-button,
input[type="time"]::-webkit-clear-button,
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
    background: none !important;
}

input[type="time"],
input[type="date"] {
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    appearance: none !important;
    background-image: none !important;
}

input[type="time"]::-moz-calendar-picker-indicator,
input[type="date"]::-moz-calendar-picker-indicator {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

/* Ensure custom icon is visible and clickable */
.nomu-time-input-wrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

.nomu-timepicker-toggle {
    z-index: 10 !important;
    pointer-events: auto !important;
}
