/* Stilizimi i Përgjithshëm */
body {
    background-color: #f8f9fa;
    font-family: 'Arial', sans-serif;
    padding-top: 5px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1030;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-nav {
    margin: 90 auto; /* E bën menynë qendrore */
    text-align: right;
}

.row {
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Stilizimi i Butonave */
.btn-primary, .btn-success, .custom-button {
    background: linear-gradient(45deg, #007bff, #6610f2);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-primary:hover, .btn-success:hover, .custom-button:hover {
    background-color: #dc3545;
    transform: scale(1.05);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Stilizimi i kartave */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Rregullimi i butonave */
button {
    border-radius: 50px;
    font-size: 1rem;
}

/* Efekt hover për butonat */
button:hover {
    transform: scale(1.05);
}

/* Spinner për ngarkim */
#loading-spinner {
    display: none;
    text-align: center;
    margin-top: 20px;
}


.card-img-top {
    max-height: 100px; /* Kufizon madhësinë e logos */
    object-fit: contain; /* Siguron që logoja të mos shtrihet */
}

.card-body {
    padding: 10px;
    font-size: 0.9rem; /* Tekst më i vogël */
}

.card-title {
    font-size: 1rem;
    font-weight: bold;
}

.btn-primary {
    font-size: 0.85rem;
    padding: 5px 10px;
    border-radius: 5px;
}


/* Inputet dhe Kërkimi */
.search-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

#btn-search {
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#btn-search:hover {
    background-color: #dc3545;
}

/* Responsivitet */
@media (max-width: 768px) {
    .card-img-top {
        max-height: 80px;
    }

    .card {
        margin: 0.5rem;
    }
}

#loading {
    display: none;
    text-align: center;
    margin: 1rem 0;
    justify-content: center;
    align-items: center;
}  

@media (max-width: 768px) {
    .container {
        width: 90%; /* Më i vogël në telefona */
        max-width: 600px; /* Kufizim i vogël për ekranet e vogla */
    }
}

/* Stilizimi për seksionin e statistikave */
#statistics {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.stat-card {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 10px 15px; /* Zvogëlo madhësinë */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    min-width: 120px; /* Kufizo madhësinë minimale */
    text-align: center;
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 1.5rem; /* Zvogëlo numrat */
    font-weight: bold;
}

#hero-slider {
    max-width: 900px;
    margin: auto;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.card-statistics:nth-child(1) {
    background: linear-gradient(135deg, #007bff, #0056b3); /* Blu */
    color: white;
}

.card-statistics:nth-child(2) {
    background: linear-gradient(135deg, #28a745, #1e7e34); /* Jeshile */
    color: white;
}

.card-statistics:nth-child(3) {
    background: linear-gradient(135deg, #dc3545, #c82333); /* E kuqe */
    color: white;
}

.card-statistics {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card-statistics:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.container-fluid .card {
    width: 100%; /* ⚡ Bën kartën e formës të mbulojë tërë gjerësinë */
    max-width: 100%;
}

#ad-form .form-control, 
#ad-form .form-select {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 5px;
}

#ad-form .btn-lg {
    font-size: 1.2rem;
    padding: 12px;
    width: 100%;
}

.badge {
    font-size: 0.9rem !important;
    padding: 8px 12px !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    display: inline-block !important;
    min-width: 100px !important;
    text-align: center !important;
}

.badge.bg-success { background-color: #28a745 !important; color: white !important; } /* E re */
.badge.bg-secondary { background-color: #6c757d !important; color: white !important; } /* E përdorur */
.badge.bg-primary { background-color: #007bff !important; color: white !important; } /* Funksionale */
.badge.bg-danger { background-color: #dc3545 !important; color: white !important; } /* E dëmtuar */

.badge {
    font-size: 0.9rem;
    padding: 8px 12px;
    font-weight: bold;
    border-radius: 8px;
    display: inline-block;
    min-width: 100px;
    text-align: center;
}

.badge.bg-secondary {
    background-color: #6c757d !important; /* Gri për 'E Përdorur' */
    color: white !important;
}

.badge.bg-success {
    background-color: #28a745 !important; /* Gjelbër për 'E Re' */
    color: white !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important; /* E kuqe për 'E Dëmtuar' */
    color: white !important;
}

.badge.bg-primary {
    background-color: #007bff !important; /* Blu për 'Funksionale' */
    color: white !important;
}

.pagination .page-item {
    margin: 0 5px;
}

.pagination .page-link {
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    transition: all 0.3s ease-in-out;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #0056b3, #004494);
    color: white;
    transform: scale(1.05);
}

.pagination .disabled .page-link {
    background: #ddd;
    color: #666;
    cursor: not-allowed;
}

.thumbnail-img {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s ease-in-out;
}

.thumbnail-img:hover {
    border: 2px solid #007bff;
}


/* 🎯 Efekti zoom për miniaturat */
.thumbnail-img {
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease-in-out, border 0.2s ease-in-out;
}

.thumbnail-img:hover {
    transform: scale(1.2);
    border: 2px solid #007bff;
}

/* Lightbox - Për të hapur foton në mes të ekranit */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.lightbox-img:hover {
    transform: scale(1.05);
}

/* Ngjyra e kalter për titujt */
.slide-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #1707f6; /* Ngjyra e kaltër (blue) */
    animation: fadeInUp 1s ease-in-out;
}

.list-view .card {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.list-view .card img {
    width: 150px;
    height: auto;
    margin-right: 15px;
}

.list-view .card-body {
    text-align: left;
}

#btn-kthehu-lart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* Fillimisht e fshehim */
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    z-index: 9999; /* 🛠 E vendosim sipër çdo gjëje tjetër */
}

#btn-kthehu-lart:hover {
    background: linear-gradient(135deg, #182848, #4b6cb7);
    transform: scale(1.1);
}

.card {
    height: 100%; /* Kartat mbushin plotësisht hapësirën e rreshtit */
    display: flex;
    flex-direction: column;
}

.card-body {
    flex-grow: 1; /* Bën që përmbajtja të mbushet në mënyrë të barabartë */
    display: flex;
    flex-direction: column;
}

.card-body p {
    flex-grow: 1; /* Përdor maksimumin e hapësirës pa zgjeruar kartën */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* E mban tekstin në një rresht, pa e zgjatur */
}

.card-body .btn {
    align-self: center; /* Qendron butoni "Shiko Detajet" në fund */
}

.card-text {
    max-height: 60px; /* Kufizon përshkrimin në 3 rreshta */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Kufizon tekstin në 3 rreshta */
    -webkit-box-orient: vertical;
}


#results-button {
    font-size: 1.1rem;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#results-button:hover {
    background-color: #28a745;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

#results-button:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px rgba(40, 167, 69, 0.5); }
    50% { box-shadow: 0 0 20px rgba(40, 167, 69, 0.7); }
    100% { box-shadow: 0 0 10px rgba(40, 167, 69, 0.5); }
}

.search-box {
    font-size: 1rem;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 100%;
}

.autocomplete-container {
    position: relative;
}



/* 📱 Për telefona - bëj që fushat të vendosen njëra mbi tjetrën */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
        gap: 10px;
    }
}


/* Sidebar (Drawer) */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px; /* Fshehur si parazgjedhje */
    width: 250px;
    height: 100%;
    background: #222;
    color: white;
    padding-top: 60px;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

/* Kur është i hapur */
.sidebar.open {
    left: 0;
}

/* Butoni për mbylljen e Sidebar-it */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Titulli në Sidebar */
.sidebar-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Lista e menu-së */
.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    padding: 10px 20px;
}

.sidebar-menu li a {
    color: white;
    text-decoration: none;
    display: block;
    transition: background 0.2s;
}

.sidebar-menu li a:hover {
    background: #444;
}

/* Për butonat me ngjyra të kuqe (p.sh., Dil) */
.sidebar-menu li a.text-danger {
    color: #ff5555;
}

footer {
    box-shadow: 0 -2px 10px rgba(255, 255, 255, 0.1);
}

footer .card {
    transition: transform 0.3s ease-in-out;
}

footer .card:hover {
    transform: scale(1.05);
}

/* Stili për container-in e kërkimit */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Stili për input-et e kërkimit */
.search-box {
    border: 2px solid #d31010;
    border-radius: 25px;
    padding: 10px 15px;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

/* Efekti Hover */
.search-box:focus {
    border-color: #007bff;
    box-shadow: 0px 4px 8px rgba(0, 123, 255, 0.2);
    outline: none;
}

/* Stili për Butonin e Kërkimit */
.btn-search {
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 20px;
    border: 3px solid #007bff; /* Kufiri me ngjyrë blu */
    border-radius: 25px;
    transition: all 0.3s ease-in-out;
    width: 100%;
}

/* Efekti Hover në Buton */
.btn-search:hover {
    background: linear-gradient(135deg, #3b5998, #182848);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* Stili për ikonën brenda input-it */
.input-group-text {
    background: transparent;
    border: 2px solid #ccc;
    border-right: none;
    border-radius: 25px 0 0 25px;
    padding: 10px 15px;
}




/* Kuti e përmirësuar për rezultatet */
.results-box {
    background: linear-gradient(135deg, #25d251, #0072ff);
    color: white;
    padding: 4px;
    border-radius: 15px;
    max-width: 8000px;
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

/* Efekti hover për kuti */
.results-box:hover {
    transform: scale(1.05);
}

/* Badge me stil modern */
.results-box .badge {
    font-size: 1rem;
    padding: 8px 15px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .input-group {
        display: block; /* Kalon në bllok për të bërë fushat vertikale */
    }

    .input-group input, 
    .input-group button {
        width: 100%; /* Bën që inputet dhe butoni të shtrihen në gjerësi të plotë */
        margin-bottom: 10px; /* Hapësirë mes tyre */
    }
}

/* 🎯 Imazhi */
.carousel-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.carousel-img:hover {
    transform: scale(1.02); /* Efekt zoom */
}

/* 🎯 Lëvizja Smooth e Slide */
.carousel-item {
    position: relative; /* vendos pozitën e duhur për parent */
 }
 
 .carousel-caption {
     position: absolute !important;
     top: 50% !important;
     left: 50% !important;
     transform: translate(-50%, -50%) !important;
     text-align: center;
     z-index: 10;
 }
 




/* 🎯 Titulli */
.carousel-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #007bff; /* Ngjyra kaltër */
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px #000;
}

/* 🎯 Çmimi */
.carousel-desc {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f8f9fa; /* White */
    text-shadow: 1px 1px 2px #000;
}

/* 🎯 Mobile Responsive */
@media (max-width: 768px) {
    .carousel-img {
        max-height: 220px;
    }

    .carousel-caption {
        padding: 10px;
    }

    .carousel-title {
        font-size: 1.3rem;
    }

    .carousel-desc {
        font-size: 1rem;
    }
}



/* 🎯 Efekt fade-in smooth */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}



/* Hapësirë horizontale mes inputeve */
.row.justify-content-center {
    gap: 20px; /* Jep hapësirë mes inputeve */
}

/* Hapësirë poshtë inputeve për të mos qenë afër rezultateve */
.search-box {
    margin-bottom: 15px;
}

/* Për telefona: inputet të shfaqen një mbi një */
@media (max-width: 768px) {
    .row.justify-content-center {
        flex-direction: column; /* Bën që input-et të vendosen një mbi një */
        gap: 10px;
    }
}

.same-height {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.same-height .card {
    flex-grow: 1; /* Të gjitha kutitë do të kenë të njëjtën lartësi */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* E shpërndan përmbajtjen në mënyrë të barabartë */
}

/* DARK MODE */
body.dark-mode .carousel-title,
body.dark-mode .carousel-desc {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* LIGHT MODE */
body:not(.dark-mode) .carousel-title {
    color: #007bff;
}

body:not(.dark-mode) .carousel-desc {
    color: #007bff;
}



