﻿/* Date Slider Global Style - White Mode & Yellow Accent */
.date-slider-wrapper {
    position: absolute;
    z-index: 999999;
    width: 100%;
    max-width: 320px;
    direction: rtl; /* لضمان التوافق مع المحتوى العربي */
}

.date-slider-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: 4px solid #FFD700; /* لمسة الهوية الصفراء */
    border-radius: 12px;
    padding: 12px 15px;
    color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-family: system-ui, -apple-system, sans-serif;
}

.date-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.date-header-icon {
    background: #FFD700;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-preview {
    background: #FFFBE6;
    border: 1px solid #FFE58F;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    margin-bottom: 10px;
}

    .date-preview .main {
        font-size: 20px;
        font-weight: bold;
        color: #000;
    }

.slider-block {
    margin-bottom: 12px;
}

    .slider-block label {
        font-size: 12px;
        display: flex;
        justify-content: space-between;
        margin-bottom: 4px;
        color: #555;
    }

    .slider-block input[type="range"] {
        width: 100%;
        appearance: none;
        height: 4px;
        background: #eee;
        border-radius: 5px;
        outline: none;
    }

        .slider-block input[type="range"]::-webkit-slider-thumb {
            appearance: none;
            width: 18px;
            height: 18px;
            background: #FFD700;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid #fff;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

.btn-confirm-date {
    width: 100%;
    background-color: #FFD700;
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

    .btn-confirm-date:hover {
        opacity: 0.9;
    }





    /* تنسيق أزرار التحكم الدقيق */
.control-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #333;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.2s;
    user-select: none;
}

    .step-btn:hover {
        background: #FFD700;
        border-color: #FFD700;
    }

    .step-btn:active {
        transform: scale(0.9);
    }

.slider-block input[type="range"] {
    flex-grow: 1; /* لجعل السلايدر يأخذ المساحة بين الأزرار */
}



/* Manual date inputs (Year / Month / Day) */
.manual-input {
    width: 70px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .manual-input:focus {
        border-color: #FFD700;
        box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.25);
    }

.control-row {
    align-items: center;
}

    .control-row .manual-input {
        margin-inline: 4px;
    }


/* ===== Slider Glow Effect (Samsung-like) ===== */

/* ===== Elegant Slider Glow (Thumb Focus Only) ===== */

.slider-block input[type="range"] {
    transition: box-shadow 0.25s ease;
}

    /* Track subtle glow (no fill) */
    .slider-block input[type="range"].glow {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
    }

        /* Thumb glow – main effect */
        .slider-block input[type="range"].glow::-webkit-slider-thumb {
            box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.25), 0 0 20px rgba(255, 215, 0, 0.85);
            transform: scale(1.15);
        }

    /* Smooth reset */
    .slider-block input[type="range"]::-webkit-slider-thumb {
        transition: box-shadow 0.25s ease, transform 0.2s ease;
    }

