/* ============================================
   تایم‌پیکر فارسی - نسخه اختصاصی سیت‌لند
   ============================================ */

/* ============================================
   کانتینر اصلی
   ============================================ */
.venus-timepicker-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

.venus-timepicker-wrap input {
    padding-left: 44px !important;
    cursor: pointer;
    width: 100%;
    background: #f8f9fa !important;
    border: 2px solid #eee !important;
    border-radius: 8px !important;
    color: #1a1a1a !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s !important;
    font-family: 'Estedad', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.venus-timepicker-wrap input:focus {
    border-color: #FFC50C !important;
    box-shadow: 0 0 0 4px rgba(255, 197, 12, 0.15) !important;
    outline: none !important;
    background: #fff !important;
}

/* ============================================
   آیکون
   ============================================ */
.vtp-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6366f1;
    z-index: 5;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.venus-timepicker-wrap:hover .vtp-icon {
    opacity: 1;
}

/* ============================================
   پنل تایم‌پیکر
   ============================================ */
.vtp-panel {
    display: none;
    position: fixed;
    width: 320px;
    max-width: calc(100vw - 20px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 100001;
    direction: rtl;
    padding: 0;
    margin: 0 !important;
    overflow: hidden;
    font-family: 'Estedad', 'Vazir', Tahoma, sans-serif !important;
    animation: vtpSlideIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes vtpSlideIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.vtp-panel.open {
    display: block !important;
}

/* ============================================
   هدر
   ============================================ */
.vtp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafbfc;
}

.vtp-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.vtp-close {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    font-size: 18px;
    color: #888;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vtp-close:hover {
    background: #f0f0f0;
    color: #e74c3c;
}

/* ============================================
   بدنه
   ============================================ */
.vtp-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    gap: 8px;
    background: #fff;
}

/* ============================================
   ستون‌ها
   ============================================ */
.vtp-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.vtp-display {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    min-width: 50px;
    text-align: center;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
    font-family: 'Estedad', sans-serif;
    line-height: 1.2;
}

.vtp-display:hover {
    background: #f8f9fa;
}

.vtp-display:focus {
    outline: 2px solid #FFC50C;
    outline-offset: 2px;
}

.vtp-arrow {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.vtp-arrow:hover {
    background: #f0f0f0;
    color: #FFC50C;
}

.vtp-arrow:active {
    transform: scale(0.9);
}

.vtp-arrow svg {
    width: 14px;
    height: 14px;
}

.vtp-colon {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 0 2px;
    user-select: none;
}

/* ============================================
   قبل/بعد از ظهر
   ============================================ */
.vtp-period {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-right: 12px;
}

.vtp-period-btn {
    padding: 4px 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    transition: all 0.2s;
    font-family: 'Estedad', sans-serif;
    white-space: nowrap;
}

.vtp-period-btn:hover {
    background: #f8f9fa;
    border-color: #ddd;
}

.vtp-period-btn.active {
    background: #FFC50C;
    border-color: #FFC50C;
    color: #1a1a1a;
}

/* ============================================
   فوتر
   ============================================ */
.vtp-footer {
    display: flex;
    gap: 8px;
    padding: 10px 16px 14px;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
}

.vtp-footer button {
    flex: 1;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Estedad', sans-serif;
}

.vtp-now {
    background: #f8f9fa;
    color: #555;
    border: 1px solid #eee;
}

.vtp-now:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}

.vtp-confirm {
    background: #FFC50C;
    color: #1a1a1a;
}

.vtp-confirm:hover {
    background: #E6B100;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px -4px rgba(255, 197, 12, 0.4);
}

/* ============================================
   واکنش‌گرایی
   ============================================ */
@media (max-width: 420px) {
    .vtp-panel {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        border-radius: 12px;
    }
    
    .vtp-body {
        padding: 16px 12px;
        gap: 4px;
    }
    
    .vtp-display {
        font-size: 28px;
        min-width: 40px;
        padding: 2px 4px;
    }
    
    .vtp-colon {
        font-size: 24px;
    }
    
    .vtp-arrow {
        width: 28px;
        height: 28px;
    }
    
    .vtp-period-btn {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .vtp-footer button {
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 360px) {
    .vtp-body {
        padding: 12px 8px;
        gap: 2px;
    }
    
    .vtp-display {
        font-size: 24px;
        min-width: 32px;
    }
    
    .vtp-colon {
        font-size: 20px;
        padding: 0 1px;
    }
    
    .vtp-period {
        margin-right: 6px;
    }
    
    .vtp-period-btn {
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* ============================================
   پشتیبانی از دارک مود
   ============================================ */
@media (prefers-color-scheme: dark) {
    .vtp-panel {
        background: #1a1a2e;
        border-color: rgba(255, 255, 255, 0.06);
    }
    
    .vtp-header {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.06);
    }
    
    .vtp-title {
        color: #eee;
    }
    
    .vtp-close {
        color: #888;
    }
    
    .vtp-close:hover {
        background: rgba(255, 255, 255, 0.06);
    }
    
    .vtp-body {
        background: #1a1a2e;
    }
    
    .vtp-display {
        color: #eee;
    }
    
    .vtp-display:hover {
        background: rgba(255, 255, 255, 0.06);
    }
    
    .vtp-colon {
        color: #eee;
    }
    
    .vtp-period-btn {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.06);
        color: #888;
    }
    
    .vtp-period-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .vtp-period-btn.active {
        background: #FFC50C;
        border-color: #FFC50C;
        color: #1a1a1a;
    }
    
    .vtp-footer {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.06);
    }
    
    .vtp-now {
        background: rgba(255, 255, 255, 0.06);
        color: #aaa;
        border-color: rgba(255, 255, 255, 0.06);
    }
    
    .vtp-now:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    .vtp-arrow {
        color: #888;
    }
    
    .vtp-arrow:hover {
        background: rgba(255, 255, 255, 0.06);
        color: #FFC50C;
    }
}

/* ============================================
   جلوگیری از انتخاب متن
   ============================================ */
.vtp-panel,
.vtp-panel * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}