/* استایل افزونه اسلایدر */

/* ========== فرم مدیریت ========== */
.slider-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slider-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px;
}

.slider-item-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.slider-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-item-info {
    flex: 1;
    min-width: 0;
}

.slider-item-info strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slider-item-info small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slider-item-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

/* ========== کاروسل صفحه اصلی ========== */
.slider-carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 15px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #f0f0f0;
    user-select: none;
}

.slider-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.slider-slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    text-decoration: none;
    display: block;
}

.slider-slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: #fff;
    padding: 30px 15px 15px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slider-nav:hover {
    background: rgba(0,0,0,0.8);
}

.slider-prev {
    right: 10px;
}

.slider-next {
    left: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: #fff;
}

@media (max-width: 480px) {
    .slider-caption {
        font-size: 0.85rem;
        padding: 20px 10px 10px;
    }
    .slider-nav {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
}