/*
5215	NEW Dashboard Carousel - FIX Complete
admin2	Site Wide Header	9 October 2025 at 21:44		css	10
*/

/* ==========================================
   DASHBOARD CAROUSEL - FIX COMPLET
   ========================================== */

/* 1. FIX IMAGINI - toate la aceeași înălțime */
.dash-figure {
    position: relative;
    width: 100%;
    height: 200px; /* înălțime fixă */
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #0B0F18, #162035);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-figure .dash-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-figure .dash-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 2. FIX STEPPER - culori vizibile + funcționalitate */
.dash-stepper {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #23283B;
}

.stepper-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.stepper-row .label {
    color: #A8B0C2;
    font-size: 13px;
    font-weight: 600;
}

.stepper {
    display: inline-flex;
    align-items: center;
    border: 2px solid #D6B46C; /* gold border */
    border-radius: 10px;
    overflow: hidden;
    background: rgba(214, 180, 108, 0.1);
    transition: all 0.2s ease;
}

.stepper:focus-within {
    border-color: #F6D773;
    box-shadow: 0 0 0 3px rgba(214, 180, 108, 0.2);
}

.stepper button {
    /* NU folosim all: unset */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    cursor: pointer;
    font-weight: 900;
    font-size: 20px;
    color: #D6B46C; /* gold text */
    background: rgba(214, 180, 108, 0.15);
    transition: all 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.stepper button:hover {
    background: rgba(214, 180, 108, 0.3);
    color: #F6D773; /* lighter gold on hover */
}

.stepper button:active {
    transform: scale(0.95);
    background: rgba(214, 180, 108, 0.4);
}

.stepper input,
.stepper .qty {
    /* NU folosim all: unset - cauza problemei! */
    width: 60px;
    height: 40px;
    text-align: center;
    font-weight: 900;
    color: #FFFFFF !important; /* ALB - 100% vizibil */
    font-size: 18px;
    background: #0B0F18 !important; /* fundal foarte dark */
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    font-family: inherit;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
}

/* Ascunde săgețile spinner */
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stepper input[type=number] {
    -moz-appearance: textfield;
}

/* 3. BUTON PLASARE - gold wow */
.btn-plasare {
    width: 100%;
    padding: 12px 20px;
    margin-top: 12px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #D6B46C 0%, #F6D773 100%);
    color: #000;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 14px rgba(214, 180, 108, 0.3);
}

.btn-plasare:hover {
    background: linear-gradient(135deg, #C49A48 0%, #E9C77A 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(214, 180, 108, 0.4);
}

.btn-plasare:active {
    transform: translateY(0);
}

/* 4. SĂGEȚI CAROUSEL - ULTRA MINIMAL, PE MIJLOCUL IMAGINII */

/* Container pentru săgeți - poziționat pe imaginea cardului */
.dash-carousel-card .dash-figure {
    position: relative;
}

/* Săgeți - doar iconița gold, fără fundal */
.elementor-swiper-button {
    width: auto !important;
    height: auto !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    /* Poziționare pe mijlocul IMAGINII (200px înălțime / 2 = 100px) */
    top: 100px !important; /* mijlocul imaginii */
    transform: translateY(-50%) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 0 !important;
    z-index: 10 !important;
}

/* Hover pe carousel - arată săgețile */
.elementor-widget-loop-carousel:hover .elementor-swiper-button {
    opacity: 1 !important;
}

/* Hover pe săgeată - glow effect */
.elementor-swiper-button:hover {
    transform: translateY(-50%) scale(1.15) !important;
}

.elementor-swiper-button:active {
    transform: translateY(-50%) scale(0.95) !important;
}

/* SVG săgeată - GOLD cu shadow pentru contrast */
.elementor-swiper-button svg {
    fill: #D6B46C !important;
    width: 36px !important;
    height: 36px !important;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8))
    drop-shadow(0 0 16px rgba(214, 180, 108, 0.6)) !important;
    transition: filter 0.3s ease !important;
}

.elementor-swiper-button:hover svg {
    fill: #F6D773 !important;
    filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 24px rgba(246, 215, 115, 0.8)) !important;
}

/* Poziționare - puțin mai în interior ca să nu suprapună textul */
.elementor-swiper-button-prev {
    left: 12px !important;
}

.elementor-swiper-button-next {
    right: 12px !important;
}

/* Mobile - săgeți mai mici și mai transparente */
@media (max-width: 768px) {
    .elementor-swiper-button svg {
        width: 28px !important;
        height: 28px !important;
    }

    .elementor-swiper-button {
        opacity: 0.3 !important; /* vizibile tot timpul pe mobile */
    }

    .elementor-widget-loop-carousel:hover .elementor-swiper-button {
        opacity: 0.9 !important;
    }
}

/* 5. FEEDBACK MESSAGE */
.quick-feedback {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.quick-feedback.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.quick-feedback.error {
    background: rgba(255, 77, 77, 0.2);
    border: 1px solid #FF4D4D;
    color: #FF4D4D;
}

/* 6. RESPONSIVE */
@media (max-width: 768px) {
    .dash-figure {
        height: 180px;
    }

    .stepper button {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .stepper input,
    .stepper .qty {
        width: 50px;
        font-size: 16px;
    }

    .elementor-swiper-button {
        width: 40px !important;
        height: 40px !important;
    }
}