/* =========================
   GLOBAL — Bootstrap overrides
   (samo izdvojeni delovi koji važe svuda)
========================= */
input.form-control,
textarea.form-control {
    border: 1.5px solid #444 !important;
    box-shadow: none;
    color: #000 !important;
    background-color: #fff;
}
input.form-control::placeholder,
textarea.form-control::placeholder {
    color: #000 !important;
    opacity: 1;
}
input.form-control:focus,
textarea.form-control:focus {
    border-color: #444 !important;
    box-shadow: none;
    outline: none;
}

select.form-control {
    border: 1.5px solid #444 !important;
    color: #000 !important;
    background-color: #fff;
    box-shadow: none;
}
select.form-control option {
    color: #000;
}
select.form-control:focus {
    border-color: #444 !important;
    box-shadow: none;
    outline: none;
}
:is(input.form-control, textarea.form-control, select.form-control):focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    border: 2px solid #333;
    box-shadow: none;
}
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0a58ca;
}

.dropdown-menu input[type="checkbox"]:not(:disabled) {
    cursor: pointer;
}
/* opciono (bolji UX): */
.dropdown-menu label {
    cursor: pointer;
}
/* =========================
   GLOBAL — Bootstrap overrides — END
========================= */


/* =========================
   Layout Footer — BEGIN
========================= */
.iq-footer {
    background-color: #f8f9fa;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #6c757d;
}
.iq-footer a {
    color: inherit;
    text-decoration: none;
}
.iq-footer a:hover {
    text-decoration: underline;
}
/* =========================
   Layout Footer — END
========================= */



/* =========================
Wrapper za ceo centent u Online Pordaja
   OnlineProdaja › content/content-wrapper.blade
========================= */
.content-wrapper {
    width: 100%;
    margin: 0 auto;
    display: block;
    padding: 50px;
    background-color: #F3F4F8;
}

/* Modal pozicija */
#online-prodaja-modal-dialog {
    margin-top: 20vh;
}

/* Toast kontejner z-index */
#online-prodaja-toast-container {
    z-index: 1055;
}
/* =========================
   OnlineProdaja › content/content-wrapper.blade — END
========================= */



/* =========================
OnlineProdaja › content/aside-filter/aside-filter-wrapper.blade.php
========================= */
.aside-filter-wrapper .custom-filter-btn {
    background-color: #2b8de0; /* tamnija plava */
    color: #fff; /* beli tekst */
    font-size: 16px;
    border: 0;
}
.aside-filter-wrapper .custom-filter-btn:hover,
.aside-filter-wrapper .custom-filter-btn:focus {
    background-color: #1f7ac7; /* malo tamnija za hover */
    color: #fff;
}
/* =========================
   OnlineProdaja › content/aside-filter/aside-filter-wrapper.blade.php — END
========================= */



/* =========================
OnlineProdaja › content/aside-filter/category.php
========================= */
/* Naslov kartice */
#adTypeCardTitle,
#categoryCardTitle,
#locationCardTitle {
    text-transform: none;
}

/* Labela "Kategorije" */
#op-category-filter-label {
    color: black;
    font-size: 15px;
}

/* Dropdown lista */
#categoryList {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
}

/* Pregled odabranih kategorija */
#selectedCategoriesText {
    font-size: 0.9em;
    color: gray;
    margin-top: 5px;
}

/* Dugme "Sve kategorije" */
#categoryDropdown {
    color: black;
    font-weight: normal;
    font-size: 15px;
}

/* Labela "Sve kategorije" */
#categoryAllLabel {
    color: black;
    font-weight: normal;
    font-size: 15px;
}

/* Labele pojedinačnih kategorija */
.categoryItemLabel {
    color: black;
    font-weight: normal;
    font-size: 15px;
}
/* =========================
   OnlineProdaja › content/aside-filter/category.php — END
========================= */



/* =========================
OnlineProdaja › content/aside-filter/location.blade.php
========================= */
/* Labela Savezne republike i Grad/Region */
#op-filter-bundesland-label,
#op-filter-district-label {
    color: black;
    font-size: 15px;
}

/* Dugmad za dropdown savezne republike i distrikta */
#op-filter-bundesland-btn,
#op-filter-district-btn {
    color: black;
    border: 1px solid black;
    background-color: white;
}

/* Liste unutar dropdown-a (oba: savezne republike i distrikti) */
#op-filter-bundesland-list,
#op-filter-district-list {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
}

/* Labela "Sve Savezne republike" */
#bundeslandAllLabel {
    color: black;
    font-weight: normal;
}

/* Dugme za savezne republike */
#bundeslandDropdown {
    color: black;
    font-weight: normal;
    font-size: 15px;
}

.category-dropdown-btn {
    color: black;
    font-weight: normal;
    font-size: 15px;
}


/* Uvek crn tekst – i u normalnom, i u :focus/:active, i dok je dropdown otvoren */
.category-dropdown-btn,
.category-dropdown-btn:focus,
.category-dropdown-btn:active,
.category-dropdown-btn.show,
.dropdown.show .category-dropdown-btn {
    color: #000 !important;
}

.dropdown-menu .form-check-label {
    color: #000 !important; /* crni tekst */
    font-weight: normal;
}

/* Labele pojedinačnih saveznih republika */
.bundeslandItemLabel {
    color: black;
    font-weight: normal;
    font-size: 15px;
}

/* Tekst u dugmetu za grad/region */
#districtButtonText {
    color: black;
    font-weight: normal;
}

/* Labele za gradske okruge */
.districtItemLabel {
    color: black;
    font-weight: normal;
    font-size: 15px;
}

/* Stil proširenog district dropdown-a */
#op-filter-district-list {
    width: clamp(280px, 90vw, 600px); /* min 280px, max 600px, a do 90% širine ekrana */
    white-space: normal;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 6px;
}

#op-filter-district-list .dropdown-header {
    font-weight: bold;
    font-size: 14px;
    color: #444;
    margin-bottom: 4px;
    padding-bottom: 2px;
    border-bottom: 1px solid #eee;
}
#op-filter-district-list .districtItemLabel {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
}
#op-filter-district-list .districtItemLabel:hover {
    background-color: #f5f5f5;
}
#op-filter-district-list input[type="checkbox"] {
    margin-right: 6px;
}
/* =========================
   OnlineProdaja › content/aside-filter/location.blade.php — END
========================= */



/* =========================
OnlineProdaja › content/aside-filter/type.blade.php
========================= */
.ad-type-label {
    color: black;
    font-size: 15px;
}
/* =========================
   OnlineProdaja › content/aside-filter/aside-filter-wrapper.blade.php — END
========================= */



/* =========================
OnlineProdaja › content/header/header-wrapper.blade.php
========================= */

/* wrapper za header (3 sekcije: left, middle, right) */
/* =========================
OnlineProdaja › content/header/header-wrapper.blade.php
========================= */

/* wrapper za header (3 sekcije: left, middle, right) */
.header-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    gap: 16px;
}

/* leva, srednja i desna sekcija */
.header-left,
.header-middle,
.header-center {
    display: flex;
    align-items: center;
    min-width: 0;
}

/* odnos širina: 3 : 7 : 2 */
.header-left {
    flex: 3 1 0;
    gap: 12px;
}

.header-middle {
    flex: 7 1 0;
    gap: 10px;
}

.header-center {
    flex: 2 1 0;
    gap: 10px;
}

.add-ad-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #2b8de0;
    color: #fff;
    border: none;
    font-weight: 500;
}

.add-ad-btn:hover {
    background-color: #1f7ac7;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(43, 141, 224, 0.3);
}

/* Sakrij strelice na number input */
#search-by-id-input::-webkit-inner-spin-button,
#search-by-id-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#search-by-id-input {
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield;
}

.my-ads-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #29b765;
    color: #fff;
    border: 0;
    font-weight: 500;
}

.my-ads-btn:hover {
    background-color: #22a058;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(41, 183, 101, 0.3);
}

/* search wrapper se rasteže u okviru middle/center */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-wrapper:focus-within {
    border-color: #2b8de0;
    box-shadow: 0 0 0 3px rgba(43, 141, 224, 0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #999;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.search-by-id {
    padding: 10px 12px 10px 38px;
    border: none;
    font-size: 15px;
    outline: none;
    background: transparent;
    width: 100%;
    flex: 1 1 auto;
    color: #333;
}

.search-by-id::placeholder {
    color: #999;
    font-size: 14px;
}

.search-by-id:focus {
    color: #000;
}

.search-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    background-color: #17a2b8;
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.search-btn:hover {
    background-color: #138496;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

/* =========================
   OnlineProdaja › content/header/header-wrapper.blade.php - END
========================= */

/* =========================
   OnlineProdaja › header — Mobile overrides (≤576px)
========================= */
@media (max-width: 576px) {
    .header-wrapper {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 12px;
    }

    .header-left,
    .header-middle,
    .header-center {
        flex: 0 0 auto;
        width: 100%;
        gap: 8px;
        justify-content: stretch;
    }

    .header-center,
    .header-middle {
        display: flex;
        align-items: center;
    }

    .search-wrapper {
        flex: 1 1 auto;
    }

    .search-by-id {
        font-size: 14px;
        padding: 9px 10px 9px 36px;
    }

    .search-icon {
        left: 10px;
        font-size: 14px;
    }

    .add-ad-btn,
    .my-ads-btn,
    .search-btn {
        padding: 9px 14px;
        font-size: 14px;
        border-radius: 8px;
        font-weight: 500;
        flex: 1 1 auto;
        text-align: center;
    }
}

.search-by-id {
    padding: 8px 8px 8px 28px;
    border: none;
    border-bottom: 2px solid #ccc; /* default stanje */
    font-size: 16px;
    outline: none;
    background: transparent;
    transition: border-color 0.3s;
    width: 100%;
    flex: 1 1 auto;
}

.search-by-id:focus {
    border-bottom-color: #2b8de0; /* fokus stanje */
}

/* obrisati #search-by-id:blur — ne postoji kao pseudo-klasa */
.search-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 16px;
    background-color: #17a2b8;
    color: #fff;
    border: none;
    transition: background-color 0.3s;
}
/* =========================
   OnlineProdaja › content/header/header-wrapper.blade.php - END
========================= */



/* =========================
OnlineProdaja › content/main-content-ads-list-ads-list-wrapper.blade.php
========================= */
#online-prodaja-ads-list-wrapper {
    padding-left: 10px;
}
.col-sm-6.col-md-4.social-post {
    display: flex;
}
/* Kartica se isteže na punu visinu kolone i slaže sadržaj vertikalno */
.col-sm-6.col-md-4.social-post .card {
    display: flex;
    flex-direction: column;
    width: 100%;
}
/* Telo kartice kao kolona (da footer može “na dno”) */
.col-sm-6.col-md-4.social-post .card-body {
    display: flex;
    flex-direction: column;
}
/* =========================
   OnlineProdaja › content/main-content-ads-list-ads-list-wrapper.blade.php - END
========================= */


/* =========================
OnlineProdaja › content/main-content-ads-list-ads-list-pagination.blade.php
========================= */


/* Wrapper */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 20px 0;
}

/* Buttons (prev/next) */
.pagination-btn {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s, color 0.2s;
}

.pagination-btn:hover {
    background: #f5f5f5;
}

.pagination-btn.disabled {
    color: #999;
    cursor: not-allowed;
    background: #f9f9f9;
}

/* Numbers */
.pagination-numbers {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-number {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s, color 0.2s;
}

.pagination-number:hover {
    background: #f5f5f5;
}

.pagination-number.active {
    border: 1px solid #50b5ff;
    background: #50b5ff;
    color: #fff;
}

/* =========================
   OnlineProdaja › content/main-content-ads-list-ads-list-pagination.blade.php - END
========================= */


/* =========================
OnlineProdaja › content/main-content/main-content/ad-idem/desciption.blade.php
========================= */
.ad-item-description {
    line-height: 1.8;
    min-height: calc(1.8em * 5);
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: auto;
    white-space: normal;
    margin: 0.5rem 0 0 0;
    color: #000;
    font-weight: 600;
}
/* =========================
   OnlineProdaja › content/main-content/main-content/ad-idem/desciption.blade.php - END
========================= */



/* =========================
OnlineProdaja › content/main-content/main-content/ad-idem/footer.blade.php
========================= */
/* dugme za izmenu oglasa */
.edit-ad-btn {
    font-weight: bold;
    color: #fff;
    background-color: #e67e22; /* narandžasta */
    border: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    cursor: pointer;
    width: 100%;
    font-size: 15px;
}

.custom-delete-btn {
    font-weight: bold;
    color: #fff;
    background-color: #ff6666; /* za nijansu svetlija crvena */
    border: none; /* uklanja default border */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    width: 100%;
}


/* dugme: kontaktiraj prodavca */
.show-message-btn {
    font-weight: bold;
    color: #fff;
    background-color: #2b8de0; /* plava */
    border: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    cursor: pointer;
    width: 100%;
}

/* dugme: prikaži sve oglase od prodavca */
.show-seller-ads-btn {
    font-weight: bold;
    color: #fff;
    background-color: #2b8de0; /* plava */
    border: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    cursor: pointer;
    width: 100%;
}

/* forma za poruku */
.message-form {
    display: none; /* skriva se dok se ne otvori */
}
/* =========================
   OnlineProdaja › content/main-content/main-content/ad-idem/footer.blade.php - END
========================= */



/* =========================
OnlineProdaja › content-main-content-main-content-ad-idem/gallery.blade.php
========================= */
.gallery-wrapper {
    padding: 8px;
}
.gallery-col {
    padding: 1px;
}
.gallery-img {
    border: 1px solid #ccc;
}
/* =========================
   OnlineProdaja › content-main-content-main-content-ad-idem/gallery.blade.php - END
========================= */



/* =========================
OnlineProdaja › content-main-content-main-content-ad-idem/additionalinfo.blade.php
========================= */
.ad-info-container {
    font-size: 0.95rem;
}
.ad-info-text {
    color: black;
}
/* =========================
   OnlineProdaja › content-main-content-main-content-ad-idem/gallery.blade.php - END
========================= */



/* =========================
OnlineProdaja › content-main-content-main-content-ad-form/ad-form-wrapper.blade.php
========================= */
#online-prodaja-newad-modal-body {
    padding: 5px;
}
#online-prodaja-newad-card {
    padding-bottom: 5px;
    margin-bottom: 0px;
}
#online-prodaja-newad-card-body {
    padding-bottom: 0px;
}
/* =========================
   OnlineProdaja › content-main-content-main-content-ad-form/ad-form-wrapper.blade.php - END
========================= */



/* =========================
OnlineProdaja › content-main-content-main-content-ad-form/category.blade.php
========================= */
select.form-control option[value=""] {
    color: #000;
}
.category-label {
    color: black;
}
/* =========================
   OnlineProdaja › content-main-content-main-content-ad-form/acategory.php - END
========================= */



/* =========================
OnlineProdaja › content-main-content-main-content-ad-form/description.blade.php
========================= */
/* Description form */
#op-desc-title-label,
#op-desc-description-label {
    color: black;
}
#op-desc-title-counter,
#op-desc-description-counter {
    font-size: 0.85rem;
}
#op-desc-title-error {
    display: none;
    font-size: 0.875rem;
}
#description {
    overflow: hidden;
    resize: none;
}
#message-textarea {
    resize: none;
    overflow: hidden;
    font-size: 0.85rem;
}
/* Placeholder stil za textarea */
.auto-expand::placeholder {
    font-size: 0.85rem;     /* manji font */
    color: #6c757d;         /* siva Bootstrap secondary */
    font-weight: 400;       /* tanji tekst */
}
/* =========================
   OnlineProdaja › content-main-content-main-content-ad-form/description.php - END
========================= */



/* =========================
OnlineProdaja › content-main-content-main-content-ad-form/gallery.blade.php
========================= */
/* Label boja */
#op-gallery-label {
    color: black;
}
/* Padding oko svake slike */
.op-gallery-col {
    padding: 1px;
}
/* Sakrivanje input-a za upload */
.op-gallery-file {
    display: none;
}

.img-fixed-sm {
    height: 160px;
    width: 100%;
    object-fit: cover;
}
/* =========================
   OnlineProdaja › content-main-content-main-content-ad-form/gallery.php - END
========================= */



/* =========================
OnlineProdaja › content-main-content-main-content-ad-form/location.blade.php
========================= */
#op-location-label {
    color: black;
}
/* Dugmad za dropdown */
.op-location-dropdown-btn {
    color: black;
    border: 1px solid black;
    background-color: white;
}
/* Lista unutar dropdown-a */
.op-location-dropdown-list {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
}
/* Error kontejner */
.op-location-error-container {
    min-height: 1.2rem;
}
/* Error poruke */
#federalStateError,
#districtError {
    display: none;
    font-size: 0.875rem;
}

/* Lokacija u formi (Savezna republika i Grad/Region) */
#form-bundeslandDropdown,
#form-districtDropdown {
    color: black;
    font-weight: normal;
    font-size: 15px;
    border: 1px solid black;
    background-color: white;
}

/* Lista unutar dropdown-a */
#form-districtList,
.op-location-dropdown-list {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
}

/* Labela za Savezne republike */
#form-bundeslandCheckAllLabel {
    color: black;
    font-weight: normal;
    font-size: 15px;
}

/* Labele pojedinačnih saveznih republika */
#op-location-wrapper .form-check-label {
    color: black;
    font-weight: normal;
    font-size: 15px;
}

/* Tekst u dugmetu za distrikt */
#form-districtButtonText {
    color: black;
    font-weight: normal;
}

/* Labele za distrikte */
#form-districtList .form-check-label {
    color: black;
    font-weight: normal;
    font-size: 15px;
}

/* Placeholder uvek crn (pregazi Bootstrap text-muted) */
#form-district-placeholder,
#form-district-placeholder * {
    color: black !important;
}

#form-districtList,
#form-districtList * {
    color: #000 !important;
}

/* Form: paralelan prikaz kolona distrikata (kao u aside-u) */
#form-districtList .district-columns {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 5px;
}
#form-districtList .district-columns > ul {
    flex: 1 1 0;
    margin: 0;
}

/* Stavke u listi (isti look&feel) */
#form-districtList .dropdown-header {
    font-weight: bold;
    font-size: 14px;
    color: #000; /* sve crno */
    margin-bottom: 4px;
    padding-bottom: 2px;
    border-bottom: 1px solid #eee;
}
#form-districtList .districtItemLabel {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
}
#form-districtList .districtItemLabel:hover {
    background-color: #f5f5f5;
}

/* Safety net: sve crno */
#form-districtList,
#form-districtList * {
    color: #000 !important;
}

/* Form dropdown: kompaktna širina + nema horizontalnog skrola */
#form-districtList {
    width: clamp(260px, 80vw, 520px);
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px;
}

/* Dve kolone, ali kompaktnije nego u aside-u */
#form-districtList .district-columns {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 8px 12px;
    align-items: start;
}

/* Kolone (ul) da lepo popune grid ćelije */
#form-districtList .district-columns > ul {
    margin: 0;
}

/* Naslovi i stavke kompaktniji */
#form-districtList .dropdown-header {
    font-size: 13px;
    margin-bottom: 4px;
    padding-bottom: 2px;
    border-bottom: 1px solid #eee;
    color: #000 !important;
}
#form-districtList .districtItemLabel {
    display: flex;
    align-items: center;
    padding: 3px 4px;
    border-radius: 4px;
    cursor: pointer;
}
#form-districtList .districtItemLabel:hover {
    background: #f5f5f5;
}

/* Na uskim ekranima automatski pređi na 1 kolonu */
@media (max-width: 576px) {
    #form-districtList .district-columns {
        grid-template-columns: 1fr;
    }
}

/* Sve crno */
#form-districtList, #form-districtList * { color:#000 !important; }

#op-bundesland-label,
#op-district-label,
#op-delivery-label {
    color: black;
}

.category-dropdown-label {
    color: black;
}


/* =========================
   OnlineProdaja › content-main-content-main-content-ad-form/location.php - END
========================= */

/* =========================
OnlineProdaja › content-main-content-main-content-ad-form/
========================= */

.text-error {
    color: red;
    font-weight: 500; /* opciono, da bude malo izraženije */
}

/* =========================
   OnlineProdaja › content-main-content-main-content-ad-form/ - END
========================= */


/* =========================
OnlineProdaja › content-main-content-main-content-ad-form/price.blade.php
========================= */
/* Label boja */
#op-price-label,
#op-delivery-label {
    color: black;
}
/* Minimalna visina kontejnera za error */
#op-price-error-container,
#op-delivery-error-container {
    min-height: 1.2rem;
}
/* Error poruke */
#priceError,
#deliveryMethodError {
    display: none;
    font-size: 0.875rem;
}
/* =========================
   OnlineProdaja › content-main-content-main-content-ad-form/price.php - END
========================= */



/* =========================
OnlineProdaja › content-main-content-main-content-ad-form/type.blade.php
========================= */
/* Boja labela */
#op-adtype-label,
#op-category-label {
    color: black;
}
/* Stil error poruka */
#op-adtype-error,
#op-category-error {
    display: none;
    font-size: 0.875rem;
}
/* Minimalna visina kontejnera za error kod kategorije */
#op-category-error-container {
    min-height: 1.2rem;
}
/* =========================
   OnlineProdaja › content-main-content-main-content-ad-form/type.php - END
========================= */



/* =========================
form-location-selector.js i aside-location-selector.js
========================= */

.dropdown-item {
    padding-left: 0.75rem;
}

.dropdown-item input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Asude samo */
.custom-header {
    font-size: 1rem;        /* malo veći font */
    font-weight: 600;       /* polu-bold */
    color: black;           /* crni tekst */
}
/* =========================
form-location-selector.js - END
========================= */


/* =========================
   Admin Layout navbar — BEGIN
========================= */
.dropdown-divider {
    border-top: 2px solid rgba(0, 0, 0, 0.7); /* deblja i tamnija linija */
}
/* =========================
   Admin Layout navbar — End
========================= */


/* =========================
   OnlineProdaja › header — Mobile overrides (≤576px)
========================= */
@media (max-width: 576px) {
    .header-wrapper {
        flex-direction: column;    /* sekcije jedna ispod druge */
        flex-wrap: wrap;
        align-items: stretch;
        gap: 6px;
        margin-bottom: 8px;
    }

    .header-left,
    .header-middle,
    .header-center {
        flex: 0 0 auto;
        width: 100%;
        gap: 6px;
        justify-content: stretch;
    }

    .header-center,
    .header-middle {
        display: flex;
        align-items: center;
    }

    .search-wrapper {
        flex: 1 1 auto;            /* input zauzima sve što može */
    }

    .search-by-id {
        width: 100%;
        font-size: 14px;
        padding: 6px 8px 6px 28px;
        border-radius: 6px;
    }

    .search-icon {
        left: 8px;
        font-size: 14px;
        color: #666;               /* suptilnija boja na mobilnom */
    }

    .add-ad-btn,
    .my-ads-btn,
    .search-btn {
        padding: 6px 10px;
        font-size: 14px;
        border-radius: 6px;
        font-weight: 500;
        flex: 1 1 auto;            /* zauzmu jednak prostor ako su u istom redu */
        text-align: center;
    }
}

.gallery-wrapper .gallery-featured-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f3f3f3;
}

.gallery-wrapper .gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.gallery-wrapper .thumb {
    display: block;
    width: 72px;
    height: 72px;
    border: 1px solid #ccc;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    background: #f3f3f3;
}

.gallery-wrapper .thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.gallery-wrapper .thumb-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
}

@media (max-width: 400px) {
    .gallery-wrapper .thumb {
        width: 60px;
        height: 60px;
    }
}

.error-message {
    color: #ff0000; /* jaka crvena */
    font-weight: 500; /* opcionalno da bude uočljivija */
}
