/* -------------------------------------------------------
                    START SEARCH BAR
------------------------------------------------------- */
.search-xl {
  border-radius: 14px;
  overflow: hidden;
}

.search-xl-input {
  padding-left: 20px;
  background-color: #1b1f24 !important;
  color: #e0e0e0 !important;
  font-size: 1.2rem; 
  letter-spacing: 1px; 
}

.search-xl-input::placeholder {
  /* font-size: 1.6rem; */
  color: #8a8f96 !important;
}

.search-xl .input-group-text {
  /* font-size: 1.8rem; */
  padding: 0 20px;
  border: none !important;
}

/* FILTERS FOR THE SEARCH BAR */
.search-filter-wrapper {
    width: 60%;
    margin: 0 auto;   /* центрира целия модул */
    display: flex;
    flex-direction: column;
    gap: 10px;        /* разстояние между search и filters */
    text-align: center;
}
.filters-container { 
    width: 100%; 
    display: flex; justify-content: center; /* центрира филтрите */ 
} 
.filter-row { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; /* центрира чекбоксовете вътре */ 
    gap: 20px; 
    width: 100%; 
}

.filter-row .filter-item {
    /* padding: 6px 14px; */
    border-radius: 10px;
    border: 2px solid rgba(100, 149, 237, 0.4); /* cornflower border */
    transition: all 0.25s ease;
    cursor: pointer;
}
.form-check:hover .form-check-label:hover {
    cursor:pointer !important;
}

/* Hover effect */
.filter-row .filter-item:hover {
    background: rgba(100, 149, 237, 0.15);
    box-shadow: 0 0 12px rgba(100, 149, 237, 0.5);
    transform: translateY(-2px);
    cursor: pointer;
}

/* Checked state: highlight the whole block */
.filter-row .form-check-input:checked + .form-check-label {
    color: cornflowerblue;
    font-weight: 900;
}

.filter-row .form-check-input:checked {
    border-color: cornflowerblue;
    background-color: cornflowerblue;
}
/* Parent highlight using :has (supported in all modern browsers) */
.filter-item:has(.form-check-input:checked) {
    background: rgba(100, 149, 237, 0.2);
    border-color: cornflowerblue;
    box-shadow: 0 0 14px rgba(100, 149, 237, 0.6);
}
.empty-message {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px; /* или колкото е висока твоята зона */
  text-align: center;
}

/* -------------------------------------------------------
                    END SEARCH BAR
------------------------------------------------------- */
/* -------------------------------------------------------
            START IMAGE PREVIEW IN ADD UAO
------------------------------------------------------- */
#uacImagePreviewWrapper {
    background: #f8f9fa;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
}
/* -------------------------------------------------------
            END IMAGE PREVIEW IN ADD UAO
------------------------------------------------------- */
/* -------------------------------------------------------
                START CARDS
------------------------------------------------------- */
  .card-sl {
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }

    .card-image img {
        max-height: 100%;
        max-width: 100%;
        border-radius: 8px 8px 0px 0;
    }

    #star  {
        position: relative;
        float: right;
        margin-top: -25px;
        margin-right: 20px;
        z-index: 2;
        background: #fff;
        border-radius: 100%;
        padding: 15px;
        font-size: 15px;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2), 0 1px 2px 0 rgba(0, 0, 0, 0.19);
    }
    #trash {
        position: relative;
        float: left;
        margin-top: -25px;
        margin-left: 20px; /* огледално на margin-right при star */
        z-index: 3;
        background: #fff;
        border-radius: 100%;
        padding: 15px;
        font-size: 15px;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2),
                    0 1px 2px 0 rgba(0, 0, 0, 0.19);
    }

    .card-action:hover {
        color: #fff;
        background: #59baed;
        -webkit-animation: pulse 1.5s infinite;
    }

    .card-heading {
        font-size: 18px;
        font-weight: bold;
        background: #fff;
        padding: 10px 15px;
        vertical-align: center;
    }

    .card-text {
        padding: 10px 15px;
        background: #fff;
        font-size: 14px;
        color: #636262;
    }

    .modal-trigger {
        display: flex;
        justify-content: center;
        width: 100%;
        background-color: #1F487E;
        color: #fff;
        border-radius: 0 0 8px 8px;
    }

    .modal-trigger:hover {
        text-decoration: none;
        background-color: #447ced;
        color: #fff;

    }
   
    .card:hover{
    box-shadow: -1px 5px 15px 0px rgba(0,0,0,0.8);
    }

    @-webkit-keyframes pulse {
        0% {
            -moz-transform: scale(0.9);
            -ms-transform: scale(0.9);
            -webkit-transform: scale(0.9);
            transform: scale(0.9);
        }

        70% {
            -moz-transform: scale(1);
            -ms-transform: scale(1);
            -webkit-transform: scale(1);
            transform: scale(1);
            box-shadow: 0 0 0 50px rgba(90, 153, 212, 0);
        }

        100% {
            -moz-transform: scale(0.9);
            -ms-transform: scale(0.9);
            -webkit-transform: scale(0.9);
            transform: scale(0.9);
            box-shadow: 0 0 0 0 rgba(90, 153, 212, 0);
        }
    }
/* -------------------------------------------------------
                END CARDS
------------------------------------------------------- */
/* -------------------------------------------------------
                START CAROUSEL
------------------------------------------------------- */

body.dark .carousel-control-prev-icon,
body.dark .carousel-control-next-icon,
body.black .carousel-control-prev-icon,
body.black .carousel-control-next-icon {
  filter: invert(1);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) brightness(200%); border-radius: 50%; padding: 12px; box-shadow: 0 0 12px #00eaff, 0 0 24px #00eaff;
}
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: -10px; /* lifts the carousel higher */
}
.carousel-img { 
    height: 680px; object-fit: contain; }

#carouselContainer {
  border: 2px solid transparent;
  border-image: linear-gradient(45deg, #6a00ff, #00d4ff) 1;
}
.carousel-caption h5 {
    font-size: 1.6rem;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
}
/* Default (dark theme) */ 
.carousel-caption h3, 
.carousel-caption h4, 
.carousel-caption h5,
.carousel-caption p { 
    color: #fff !important; text-shadow: 0 0 6px rgba(0,0,0,0.7);
} 
    /* Light theme override */ 
body.theme-light .carousel-caption h3, 
body.theme-light .carousel-caption h4, 
body.theme-light .carousel-caption p { 
    color: #000 !important; text-shadow: 0 0 6px rgba(255,255,255,0.7); 
}
.carousel-caption {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    padding: 40px 40px;
    text-align: center; /* or center if you prefer */
    bottom: 0; /* stick to bottom */
    /* background: rgba(0,0,0,0.01);  */
    backdrop-filter: blur(1px);
}

.carousel-item img {
  transition: transform 8s ease;
}
.carousel-item.active img {
    animation: zoomIn 8s ease forwards;
}
@keyframes zoomIn { from { transform: scale(1); } to { transform: scale(1.25); } }

/* -------------------------------------------------------
                END CAROUSEL
------------------------------------------------------- */