/* ========================================================
   Innova Cjenik Generator & Validator - Soft Sage & Mint CSS System
   Nježna, odmarajuća paleta s umirujućim zelenkastim tonovima
   ======================================================== */

:root {
    /* Glavna smirujuća prirodna zelena paleta (Sage / Forest / Mint) */
    --primary: #2d6a4f;              /* Prirodna, smirena kadulja/šumska zelena */
    --primary-hover: #1b4332;        /* Duboka elegantna zelena na hover */
    --primary-light: #f0f7f3;        /* Izrazito nježna, prozračna zelenkasta pozadina */
    --primary-subtle: #e2f0e8;       /* Meka zelenkasta za bedževe i kartice */
    --primary-border: #b7e4c7;       /* Blagi pastelni zeleni rub */
    --primary-glow: rgba(45, 106, 79, 0.16);

    /* Sekundarne komplementarne meke boje */
    --secondary: #40916c;            /* Svježa kadulja */
    --secondary-hover: #2d6a4f;
    --accent: #52b788;               /* Mekana menta akcent */

    /* Stanja i obavijesti - ublaženi, odmarajući tonovi */
    --success: #2d6a4f;
    --success-light: #f0fdf4;
    --warning: #b45309;              /* Ublažena topla jantarna */
    --warning-light: #fefce8;
    --danger: #be123c;               /* Mekana rubin crvena */
    --danger-light: #fff1f2;

    /* Tekst i neutralne podloge - tople neutralne umjesto hladnih plavih */
    --dark: #1b2820;                 /* Mekana tamno-zelenkasta antracit za ugodan tekst */
    --dark-muted: #3d5245;           /* Umirujući sivo-zelenkasti podtekst */
    
    /* Blaga sivo-zelenkasta skala za ugodu očima */
    --gray-50: #f7faf8;
    --gray-100: #f0f5f2;
    --gray-200: #e2ebe5;
    --gray-300: #cdd9d1;
    --gray-400: #9cb1a4;
    --gray-500: #6f8578;
    --gray-600: #4e6357;
    --gray-700: #384a3f;
    --gray-800: #26352c;
    --gray-900: #17221b;

    /* Bootstrap 5 sistemsko mapiranje na novu paletu */
    --bs-primary: #2d6a4f;
    --bs-primary-rgb: 45, 106, 79;
    --bs-primary-bg-subtle: #f0f7f3;
    --bs-primary-border-subtle: #b7e4c7;
    --bs-primary-text-emphasis: #1b4332;

    --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --card-shadow: 0 4px 20px -2px rgba(27, 40, 32, 0.05), 0 2px 6px -1px rgba(27, 40, 32, 0.03);
    --card-shadow-hover: 0 16px 28px -6px rgba(45, 106, 79, 0.12), 0 6px 12px -2px rgba(27, 40, 32, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background-color: var(--gray-50);
    line-height: 1.65;
    font-size: 1.02rem;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    letter-spacing: -0.025em;
    color: var(--gray-900);
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Header & Navigation */
.navbar-custom {
    background: rgba(247, 250, 248, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.25s ease;
}

.brand-badge {
    background: linear-gradient(135deg, #2d6a4f 0%, #52b788 100%);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25);
}

.nav-link-custom {
    font-weight: 500;
    color: var(--gray-700);
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-link-custom:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.nav-link-custom.active {
    color: var(--primary) !important;
    background-color: var(--primary-light);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at 15% 15%, #edf6f1 0%, #f7faf8 45%, #e8f4ed 100%);
    padding: 4.5rem 0 3.5rem;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 1.15rem;
    background-color: #ffffff;
    border: 1.5px solid var(--primary-border);
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.08);
}

.hero-pill-badge {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hero-brand-graphic {
    max-width: 480px;
    width: 100%;
}

.hero-banner-img {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 1024 / 341;
    filter: drop-shadow(0 4px 14px rgba(45, 106, 79, 0.08));
}

.hero-title {
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--gray-900);
    letter-spacing: -0.03em;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
}

.hero-title-gradient {
    background: linear-gradient(135deg, #1b4332 10%, #2d6a4f 60%, #52b788 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.22rem;
    line-height: 1.7;
    color: var(--dark-muted);
    font-weight: 450;
    max-width: 700px;
}

.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    background: #ffffff;
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hero-requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.65rem 0.5rem;
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
}

.hero-requirement-item:hover {
    background-color: var(--primary-light);
}

.hero-requirement-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    display: block;
    margin-bottom: 0.2rem;
}

.hero-requirement-text {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.55;
    font-weight: 450;
    margin-bottom: 0;
}

/* Custom Cards */
.card-modern {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-border);
}

.feature-card-desc {
    font-size: 0.98rem;
    color: var(--dark-muted);
    line-height: 1.6;
    font-weight: 450;
    margin-bottom: 1.15rem;
}

.card-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: auto;
    padding-top: 0.5rem;
}

.card-action-btn:hover {
    color: var(--primary-hover);
    transform: translateX(4px);
    text-decoration: underline;
}

.card-feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.icon-indigo, .icon-sage {
    background-color: var(--primary-light);
    color: var(--primary);
}

.icon-emerald {
    background-color: #e8f5ed;
    color: #2d6a4f;
}

.icon-amber {
    background-color: var(--warning-light);
    color: var(--warning);
}

.icon-cyan {
    background-color: #e6f6f0;
    color: #208b63;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.85rem 1.75rem;
    box-shadow: 0 4px 16px var(--primary-glow);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #1b4332 0%, #143526 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 106, 79, 0.35);
}

.btn-secondary-custom {
    background: #ffffff;
    color: var(--gray-800);
    font-weight: 700;
    font-size: 1.05rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 0.8rem 1.65rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-secondary-custom:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(45, 106, 79, 0.15);
}

.btn-success-custom {
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.65rem 1.4rem;
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.2);
    transition: all 0.2s ease;
}

.btn-success-custom:hover {
    background: linear-gradient(135deg, #1b4332 0%, #143526 100%);
    color: #fff;
    transform: translateY(-1px);
}

/* File Upload Dropzone */
.dropzone-box {
    border: 2px dashed var(--primary-border);
    background: linear-gradient(180deg, #f7faf8 0%, #ffffff 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.dropzone-box:hover, .dropzone-box.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: scale(1.01);
}

.dropzone-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

/* Interactive Table */
.table-cjenik-wrap {
    container-type: inline-size;
    container-name: tablewrap;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow-x: auto;
    overflow-y: auto;
    max-height: 65vh;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    min-height: 250px;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #9cb1a4 #f0f5f2;
}

/* Centrirani prazan prikaz tablice unutar vidljivog okvira */
.empty-table-state-box {
    position: sticky;
    left: 0;
    width: 100cqw;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    margin: 0 auto;
    box-sizing: border-box;
}

@supports not (container-type: inline-size) {
    .empty-table-state-box {
        width: 100%;
        max-width: 100vw;
    }
}

.table-cjenik-wrap.table-cjenik-wrap-expanded {
    max-height: 85vh;
}

.table-cjenik-wrap::-webkit-scrollbar {
    width: 8px;
    height: 10px;
}
.table-cjenik-wrap::-webkit-scrollbar-track {
    background: #f0f5f2;
    border-radius: 4px;
}
.table-cjenik-wrap::-webkit-scrollbar-thumb {
    background: #9cb1a4;
    border-radius: 4px;
    border: 2px solid #f0f5f2;
}
.table-cjenik-wrap::-webkit-scrollbar-thumb:hover {
    background: #40916c;
}

.table-cjenik {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}

.table-cjenik thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #24382c;
    color: #f7faf8;
    font-weight: 600;
    padding: 0.75rem 0.85rem;
    border: none;
    border-bottom: 2px solid #17221b;
    white-space: nowrap;
}

.table-cjenik td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.table-cjenik tr:last-child td {
    border-bottom: none;
}

.table-cjenik tr:hover td {
    background-color: var(--primary-light);
}

/* ========================================================
   Fiksirani (Sticky) stupci za lagani unos i pregled
   Lijevo: # i 1. Naziv robe | Desno: 11. Bazna cijena i Akcija
   ======================================================== */
.table-cjenik .col-sticky-num {
    position: sticky;
    left: 0;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    z-index: 5;
    background-color: #ffffff;
}
.table-cjenik thead th.col-sticky-num {
    z-index: 25;
    background-color: #24382c;
}

.table-cjenik .col-sticky-name {
    position: sticky;
    left: 44px;
    width: 220px;
    min-width: 220px;
    z-index: 5;
    background-color: #ffffff;
    box-shadow: 4px 0 8px -2px rgba(0, 0, 0, 0.07);
}
.table-cjenik thead th.col-sticky-name {
    z-index: 25;
    background-color: #24382c;
    box-shadow: 4px 0 8px -2px rgba(0, 0, 0, 0.15);
}

/* Cjenik usluga ima širi stupac za nazive usluga jer ima samo 4 propisana stupca */
.table-cjenik.table-cjenik-usluga .col-sticky-name,
.table-cjenik.table-cjenik-usluga thead th.col-sticky-name {
    width: 340px;
    min-width: 320px;
}

.table-cjenik td.col-sticky-name {
    overflow: visible !important;
}

.table-cjenik td.col-sticky-name:focus-within {
    z-index: 35 !important;
}

/* Omot ćelije naziva omogućuje glatko proširenje polja na klik/fokus bez pomicanja ostalih stupaca */
.table-cjenik .naziv-cell-wrapper {
    position: relative;
    width: 100%;
    min-height: 31px;
    display: flex;
    align-items: center;
}

.table-cjenik .table-input-cell.item-naziv {
    width: 100%;
    transition: width 0.18s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.18s ease, border-color 0.18s ease;
}

/* Kada se klikne u polje Naziv (fokus), polje se širi preko susjednih ćelija da se vidi sav tekst */
.table-cjenik .table-input-cell.item-naziv:focus {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 50;
    width: max(100%, 540px);
    min-width: 540px;
    max-width: min(850px, calc(100vw - 80px));
    background: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22), 0 0 0 3px rgba(45, 106, 79, 0.25) !important;
}

@media (max-width: 768px) {
    .table-cjenik .table-input-cell.item-naziv:focus {
        min-width: 100%;
        max-width: calc(100vw - 40px);
        width: 100%;
    }
}

.table-cjenik .col-sticky-action {
    position: sticky;
    right: 0;
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    z-index: 5;
    background-color: #ffffff;
}
.table-cjenik thead th.col-sticky-action {
    z-index: 25;
    background-color: #24382c;
}

.table-cjenik .col-sticky-bazna {
    position: sticky;
    right: 50px;
    width: 150px;
    min-width: 150px;
    z-index: 6;
    background-color: #f0f7f3 !important;
    box-shadow: -5px 0 10px -2px rgba(45, 106, 79, 0.15);
}
.table-cjenik thead th.col-sticky-bazna {
    z-index: 26;
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%) !important;
    box-shadow: -5px 0 10px -2px rgba(0, 0, 0, 0.25), inset 0 -2px 0 #74c69d !important;
}

/* Hover efekt za fiksirane ćelije */
.table-cjenik tr:hover td.col-sticky-num,
.table-cjenik tr:hover td.col-sticky-name,
.table-cjenik tr:hover td.col-sticky-action {
    background-color: var(--primary-light) !important;
}
.table-cjenik tr:hover td.col-sticky-bazna {
    background-color: #e2f0e8 !important;
}

/* MPC stupac proširen jednako kao Bazna cijena */
.table-cjenik .col-mpc-cell {
    width: 150px;
    min-width: 150px;
}

/* Tooltip info ikona u hederu tablice */
.table-th-info {
    font-size: 0.82rem;
    opacity: 0.7;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 0.35rem;
    transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
    display: inline-block;
}
.table-th-info:hover {
    opacity: 1;
    transform: scale(1.2);
    color: #a7f3d0 !important;
}

/* Oznaka greške validacije za fiksirane ćelije */
.table-cjenik tr.validation-error-row td.col-sticky-num,
.table-cjenik tr.validation-error-row td.col-sticky-name,
.table-cjenik tr.validation-error-row td.col-sticky-action,
.table-cjenik tr.validation-error-row td.col-sticky-bazna {
    background-color: #fff1f2 !important;
}

/* Responzivnost za manje ekrane (tableti i mobiteli) */
@media (max-width: 768px) {
    .table-cjenik .col-sticky-name,
    .table-cjenik .col-sticky-bazna,
    .table-cjenik .col-sticky-action {
        position: static !important;
        box-shadow: none !important;
    }
    .table-cjenik thead th.col-sticky-name,
    .table-cjenik thead th.col-sticky-bazna,
    .table-cjenik thead th.col-sticky-action {
        position: sticky !important;
        top: 0 !important;
        left: auto !important;
        right: auto !important;
    }
}

.table-input-cell {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    padding: 0.25rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    transition: all 0.15s ease;
}

.table-input-cell:focus, .table-input-cell:hover {
    border-color: var(--primary-border);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

/* Badges & Pills */
.badge-law {
    background-color: var(--primary-subtle);
    color: var(--primary-hover);
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-tag {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.badge-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.badge-tag-xml {
    background-color: #e2f0e8;
    color: #1b4332;
}

.badge-tag-csv {
    background-color: #d8f3dc;
    color: #166534;
}

.badge-tag-excel {
    background-color: #fef3c7;
    color: #92400e;
}

/* FAQ Accordion Styling */
.faq-item {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 1.15rem;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
    border-color: var(--primary-border);
    box-shadow: 0 6px 16px rgba(45, 106, 79, 0.06);
}

.faq-item details summary {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1.12rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.15s ease;
}

.faq-item details summary::-webkit-details-marker {
    display: none;
}

.faq-item details summary:hover {
    color: var(--primary);
}

.faq-item details[open] summary {
    color: var(--primary);
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--primary-light);
}

.faq-icon-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--gray-600);
    transition: transform 0.25s ease, background-color 0.25s ease;
    flex-shrink: 0;
}

.faq-item details[open] .faq-icon-toggle {
    transform: rotate(180deg);
    background-color: var(--primary-subtle);
    color: var(--primary);
}

.faq-content {
    padding: 1.4rem 1.6rem;
    color: var(--dark-muted);
    line-height: 1.75;
    font-size: 1.04rem;
    font-weight: 450;
}

.faq-content p {
    margin-bottom: 1rem;
}

.faq-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.faq-content li {
    margin-bottom: 0.4rem;
}

.faq-content a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.faq-content a:hover {
    color: var(--primary-hover);
}

/* Compliance Score Gauge */
.score-card {
    background: linear-gradient(145deg, #ffffff 0%, #f7faf8 100%);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.score-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-weight: 800;
    position: relative;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.score-circle-success {
    background: #ecfdf5;
    color: #2d6a4f;
    border: 5px solid #52b788;
}

.score-circle-warning {
    background: #fffbeb;
    color: #b45309;
    border: 5px solid #f59e0b;
}

.score-circle-danger {
    background: #fff1f2;
    color: #be123c;
    border: 5px solid #f43f5e;
}

/* Code Preview Box */
.code-preview-box {
    background-color: #17221b;
    color: #e2ebe5;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    max-height: 380px;
    overflow-y: auto;
    position: relative;
    border: 1px solid #233e30;
}

.code-copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #24382c;
    border: 1px solid #385040;
    color: #d1e3d7;
    font-size: 0.75rem;
    border-radius: 6px;
    padding: 0.3rem 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-copy-btn:hover {
    background: #385040;
    color: #fff;
}

/* CTA Banner Section - Odmarajuća zelena umjesto indigo */
.cta-banner-section {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 60%, #40916c 100%);
    color: #ffffff;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Footer - Ugodan, prirodan šumski ton */
.footer-custom {
    background-color: #162a20;
    color: #a3b8ac;
    border-top: 1px solid #233e30;
    padding: 3.5rem 0 2rem;
    font-size: 0.92rem;
}

.footer-custom a {
    color: #d1e3d7;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-custom a:hover {
    color: #ffffff;
}

.footer-custom .badge {
    background-color: #1f382b !important;
    border-color: #2e4e3d !important;
    color: #d1e3d7 !important;
}

.footer-custom .text-secondary {
    color: #9cb1a4 !important;
}

/* ========================================================
   Bazna Cijena - Zakonsko Isticanje (NN 132/2026)
   ======================================================== */
.th-bazna-header {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%) !important;
    color: #fff !important;
    border-left: 2px solid #52b788 !important;
    border-right: 2px solid #52b788 !important;
    box-shadow: inset 0 -2px 0 #74c69d;
}

.cell-bazna-highlight {
    background-color: #f0f7f3 !important;
    border-left: 2px solid #b7e4c7 !important;
    border-right: 2px solid #b7e4c7 !important;
}

.input-bazna-price {
    font-weight: 700 !important;
    color: #1b4332 !important;
    border-color: #95d5b2 !important;
    background-color: #ffffff !important;
}

.input-bazna-price:focus {
    border-color: #2d6a4f !important;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.2) !important;
}

.input-bazna-date {
    border-color: #b7e4c7 !important;
    font-size: 0.85rem !important;
}

.input-bazna-date:disabled {
    background-color: #f0f5f2 !important;
    color: #6f8578 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.date-preset-pill {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    background: #e8f5ed;
    color: #1b4332;
    border: 1px solid #b7e4c7;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.date-preset-pill:hover:not(.disabled) {
    background: #2d6a4f;
    color: #ffffff;
    border-color: #1b4332;
}

.date-preset-pill.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray-200);
    color: var(--gray-500);
    border-color: var(--gray-300);
}

/* Date Quick Selection Popup */
.date-quick-popup {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 1050;
    width: 255px;
    background: #ffffff;
    border: 1px solid #b7e4c7;
    box-shadow: 0 12px 28px rgba(27, 40, 32, 0.15), 0 4px 8px rgba(0, 0, 0, 0.04);
    animation: popupFadeIn 0.15s ease-out;
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.date-popup-item {
    transition: all 0.15s ease;
    border-color: var(--gray-200);
}

.date-popup-item:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-border);
}

.date-popup-item:active {
    background-color: var(--primary-subtle);
}

.btn-close-sm {
    font-size: 0.65rem;
    padding: 0.2rem;
}

.validation-error-row {
    animation: highlightPulse 2s ease-in-out;
    background-color: #fff1f2 !important;
}

@keyframes highlightPulse {
    0% { background-color: #ffe4e6; }
    50% { background-color: #fecdd3; }
    100% { background-color: #fff1f2; }
}

/* ========================================================
   Bootstrap 5 Theme Overrides (Complete removal of default blue #0d6efd)
   ======================================================== */

.btn-primary {
    --bs-btn-color: #ffffff !important;
    --bs-btn-bg: #2d6a4f !important;
    --bs-btn-border-color: #2d6a4f !important;
    --bs-btn-hover-color: #ffffff !important;
    --bs-btn-hover-bg: #1b4332 !important;
    --bs-btn-hover-border-color: #1b4332 !important;
    --bs-btn-focus-shadow-rgb: 45, 106, 79 !important;
    --bs-btn-active-color: #ffffff !important;
    --bs-btn-active-bg: #1b4332 !important;
    --bs-btn-active-border-color: #143526 !important;
    --bs-btn-disabled-color: #ffffff !important;
    --bs-btn-disabled-bg: #6f8578 !important;
    --bs-btn-disabled-border-color: #6f8578 !important;
    background-color: #2d6a4f !important;
    border-color: #2d6a4f !important;
    color: #ffffff !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active {
    background-color: #1b4332 !important;
    border-color: #1b4332 !important;
    color: #ffffff !important;
}

.btn-outline-primary {
    --bs-btn-color: #2d6a4f !important;
    --bs-btn-border-color: #2d6a4f !important;
    --bs-btn-hover-color: #ffffff !important;
    --bs-btn-hover-bg: #2d6a4f !important;
    --bs-btn-hover-border-color: #2d6a4f !important;
    --bs-btn-focus-shadow-rgb: 45, 106, 79 !important;
    --bs-btn-active-color: #ffffff !important;
    --bs-btn-active-bg: #1b4332 !important;
    --bs-btn-active-border-color: #1b4332 !important;
    --bs-btn-disabled-color: #6f8578 !important;
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: #6f8578 !important;
    border-color: #2d6a4f !important;
    color: #2d6a4f !important;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active, .btn-outline-primary.active {
    background-color: #2d6a4f !important;
    border-color: #2d6a4f !important;
    color: #ffffff !important;
}

/* Nav Pills (Live code preview tabs, etc.) */
.nav-pills .nav-link {
    color: #2d6a4f !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.nav-pills .nav-link:hover {
    color: #1b4332 !important;
    background-color: #f0f7f3 !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #ffffff !important;
    background-color: #2d6a4f !important;
    box-shadow: 0 2px 6px rgba(45, 106, 79, 0.25);
}

/* Alert Info & Alert Boxes - Soft Sage instead of Cyan / Blue */
.alert-info {
    --bs-alert-color: #1b4332 !important;
    --bs-alert-bg: #e8f4ed !important;
    --bs-alert-border-color: #b7e4c7 !important;
    color: #1b4332 !important;
    background-color: #e8f4ed !important;
    border-color: #b7e4c7 !important;
}

.alert-info .bi, .alert-info i {
    color: #2d6a4f !important;
}

/* Badges & Accents */
.badge.bg-primary {
    background-color: #2d6a4f !important;
    color: #ffffff !important;
}

.badge.bg-primary-subtle {
    background-color: #f0f7f3 !important;
    color: #1b4332 !important;
}

.border-primary-subtle {
    border-color: #b7e4c7 !important;
}

.text-primary {
    color: #2d6a4f !important;
}

.bg-primary-subtle {
    background-color: #f0f7f3 !important;
}

.bg-primary {
    background-color: #2d6a4f !important;
}

/* Form Controls & Check Inputs */
.form-control:focus, .form-select:focus {
    border-color: #52b788 !important;
    box-shadow: 0 0 0 0.25rem rgba(45, 106, 79, 0.2) !important;
}

.form-check-input:checked {
    background-color: #2d6a4f !important;
    border-color: #2d6a4f !important;
}

.form-check-input:focus {
    border-color: #52b788 !important;
    box-shadow: 0 0 0 0.25rem rgba(45, 106, 79, 0.2) !important;
}

/* Modal Choice Pricelist Cards */
.choice-pricelist-card {
    transition: all 0.22s ease-in-out;
}

.choice-pricelist-card:hover {
    border-color: #2d6a4f !important;
    background-color: #f7faf8 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px -4px rgba(45, 106, 79, 0.16) !important;
}
