:root {
    --green: #42A475;
    --gray: #767171;
    --white: #f6f8fa;
    --w: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: "Lato", Arial, sans-serif;
    background-color: var(--white);
    color: var(--gray);
    display: flex;
    flex-direction: column;
    padding-top: 15px;  /* mali razmak iznad trake */
}

/* ===== HEADER / ZELENA TRAKA ===== */

header {
    background-color: var(--green);
    flex: 0 0 auto;
    height: 68px;
    overflow: visible; /* logo smije da "viri" */
}

.header-inner {
    max-width: 1800px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    margin-left: -12px;
    gap: 10px;
}

.brand img {
    height: 132px;
    width: 132px;  
    margin-bottom: -38px;
}

.brand-title {
    font-size: 25px;
    font-weight: bold;
    width: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 54px;
    margin-left: -42px;
    line-height: 0.83;
    color: var(--w);
    flex-direction: row;
    letter-spacing: -0.36px;
}
.brand-top {
    font-size: 34px;
    font-weight: 700;
}

.brand-bottom {
    font-size: 23px;
    font-weight: 700;
    color: #42A475;
    letter-spacing: 2.65px; /* diskretno, da diše */
}

/* NAVIGATION ICON BUTTONS */
nav {
    display:flex;
    align-items: center;
    gap: 58px;   /* razmak između ikona */
    margin-top: 4px;
    margin-right: 70px;
}

/* osnovni stil dugmeta */
.nav-link {
    width: 50px;      
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;   /* NEMA background */
    cursor: pointer;
    position: relative;
}

/* ikonice */
.nav-link img {
    width: 29px;
    opacity: 0.50;              /* neaktivne — blijede */
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* hover efekat (samo ikonice, bez pozadine) */
.nav-link:hover img {
    opacity: 1;              /* jače vidljiva ikona */
    transform: scale(1.22);
}

/* aktivna stranica */
.nav-link.active img {
    opacity: 1;
    transform: scale(1.22); /* malo, ne "wow" */
}

/* mali indikator */
.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
}
.icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}




/* ===== LAYOUT ZA STRANICE ===== */

main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
}

.page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px 30px;
}

/* ===== HOME – hero sekcija ===== */

.hero-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 250px; /* razmak između teksta i gif-a */
    margin-bottom: 38px;
    margin-left: 48px;
}


.hero-text {
    max-width: 540px;
    text-align: left;
}

.hero-title {
    font-size: 54px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 652;
    margin-top: 77px;
    color: #42a473;
    margin-bottom: 12px;
    white-space: nowrap;
}

.hero-text p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 35px;
}

.btn-primary {
    display: inline-block;
    padding: 8px 18px;
    margin-top: 5px;
    margin-bottom: 15px;
    height: 43px;
    letter-spacing: .75px;
    border-radius: 16px;
    border: 1px solid transparent;
    background-color: var(--green);
    color: var(--w);
    font-size: 19px;
    font-weight: 700;
    box-shadow: 0 8px 21px rgba(0, 0, 0, 0.1);
    text-decoration:none;
    cursor: pointer;
    transition: background-color 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--w);
    color: var(--green);
    border-color: var(--green);
}

.hero-image img {
    margin-top: 40px;
    width: 180px;
    max-width: 100%;
    display: block;
    transform: translateX(-43px);
    transform: translateY(-15px);
}

.hero-wrapper.hero-no-image {
    justify-content: flex-start;
    padding-left: 30px; /* vizualni “anchor” lijevo */
    gap: 0;
}

/* ===== BARCODE SCAN PAGE ===== */


.btn-search {
    padding: 5px 5px;
    border-radius: 10px;
    border: 1px solid transparent;
    background-color: var(--green);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease;
}

.btn-search:hover {
    background-color: var(--white);
    color: var(--green);
    border-color: var(--green);
}


/* ===== SMART SEARCH PAGE (za sad samo placeholder) ===== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* ===== FOOTER ===== */

footer {
    flex: 0 0 auto;
    font-size: 11px;
    color: var(--gray);
    text-align: center;
    padding: 6px 10px 10px;
}

@media (max-width: 900px) {
    .hero-wrapper {
        flex-direction: column;
        /*text-align: center;*/
    }

    .hero-title {
        white-space: normal;
        text-align: left;
    }
    .hero-text {
        text-align: left;  /* ako želiš da i na mobilnom ostane left */
    }

    .hero-image {
        margin-top: 30px;
    }

    .barcode-wrapper {
        flex-direction: column;
    }

    .barcode-right {
        width: 100%;
    }
}

  .pager-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #42A475;
    cursor: pointer;
  }

  .pager-btn.disabled {
    opacity: 0.3;
    cursor: default;
  }

  .pager-number {
    background: none;
    border: none;
    font-size: 14px;
    color: #666;
    cursor: pointer;
  }

  .pager-number.active {
    font-weight: 600;
    color: #42A475;
    text-decoration: underline;
    cursor: default;
  }



.arrow-btn {
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.arrow-btn:hover {
  transform: scale(1.2);
  opacity: 0.8;
}


/* ============================================
   CUSTOM SCANNER UI — FINAL VERSION
   ============================================ */
/* BIJELI BOX */
#reader {
    width: 320px;
    height: 380px;
    box-shadow: 0 8px 21px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    margin-top: -50px;
    align-items: center;
    justify-content: center;
    padding: 25px 25px;
}

/* GIF PRIJE PALJENJA KAMERE */
#reader.show-gif::before {
    content: "";
    background-image: url("gif/scan.gif");
    background-size: 115px;
    background-repeat: no-repeat;
    background-position: center 45px;
    opacity: 0.95;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* NASLOV UNUTAR BOX-A */
.scanner-title {
    font-weight: 700;
    font-size: 24px;
    color: #42A475;
    margin-top: 5px;
}

/* GRUPA DUGMADI */
.scan-controls {
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 35px;
}

/* VIDEO */
#reader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

/* DUGMAD UNUTAR OKVIRA */
.scan-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 20;
}

/* DUGME STYLE BEZ OKVIRA */
.scan-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--green);
    font-weight: 500;
    font-size: medium;
}

.scan-btn img {
    width: 45px;
    margin-bottom: 4px;
}

/* ============================================
   100% UKLANJANJE SVAKOG DUPLIRANOG DASHBOARDA
   ============================================ */
/* Potpuno uklanja sve duplicirane HTML5-qrcode dashboard elemente */
div[id^="reader__dashboard"],
div[id^="reader__dashboard"] *,
div[id^="reader__dashboard_section"],
div[id^="reader__dashboard_section"] *,
div[id^="reader__dashboard_section_swaplink"],
div[id^="reader__dashboard_section_file"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
}
/* === GLOBAL GREEN FLASH EFFECT === */
.green-flash {
    animation: greenFlash 0.6s ease;
}

@keyframes greenFlash {
    0%   { background-color: #42A475; opacity: 30%; }
    100% { background-color: white; }
}
.scan-message--error {
    color: red;     
    font-weight: bold; 
}

/* STEPS FLOW SECTION - home page*/
.steps-flow {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 120px 0 20px 0;
}

.flow-container {
    display: flex;
    align-items: center;
     margin-left: -41px;
    justify-content: center;
    gap: 10px;   /* smanji koliko želiš: 10–20px je idealno */
}


/*HOW IT WORKS cards */
.flow-box {
    background: #ffffff;
    width: 222px;
    min-height: 150px;
    padding: 20px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;                  /* CENTRALNO PORAVNANJE */
    flex-direction: column;
    justify-content: center;        /* vertikalno centriranje sadržaja */
    align-items: center;            /* horizontalno centriranje sadržaja */
    text-align: center;
    border: 1px solid #F4F6F5;
}

.flow-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* ICONS – preuzeto iz HOW IT WORKS SECTION */
.flow-icon img {
    width: 70px;       /* smanji ili povećaj po želji */
    height: auto;      /* zadrži proporcije */
    display: block;
    margin: 10 auto;    /* centriranje */
}

/* TITLES & TEXT */
.flow-box h2 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: #555;
}

.flow-box p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.45;
}

/* ARROWS */
.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;          /* širina prostora između kartica */
    height: 100%;         /* centriranje po visini */
}

.flow-arrow img {
    width: 50px;          /* veličina strijelice */
    height: auto;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .flow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;   /* smanji koliko želiš: 10–20px je idealno */
}


    .flow-arrow {
        transform: rotate(90deg);
    }
}
.creator-box {
    background: #ffffff ;
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    
}