﻿.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f9f9f9;
    padding: 20px;
}

.slider-track {
    display: flex;
    flex-direction: row-reverse; /* چینش اسلایدها از راست به چپ */
    direction: rtl;
    transition: transform 0.3s ease-in-out;
}

.slide {
    flex: 0 0 auto;
    width: 300px;
    height: 300px;
    margin-right: 10px; /* فاصله بین اسلایدها */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    background: #eee;
    border-radius: 10px;
}

.slider-controls {
    position: absolute;
    backdrop-filter: blur(10px);
    height: 100%;
    top: 0;
    right: 0;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .slider-controls button {
        margin-top: 5px;
        background-color: #df7870;
        border: #df7870 2px solid;
        color: white;
        padding: 10px 15px;
        cursor: pointer;
        border-radius: 5px;
        font-size: 16px;
        transition: all 0.8s ease;
    }

        .slider-controls button:hover {
            background-color: white;
            color: #df7870;
            border: #df7870 2px solid;
            border-radius: 50%;
        }

        .slider-controls button:disabled {
            background-color: #ccc;
            border: #ccc 2px solid;
            cursor: not-allowed;
        }
