/* =========================================
   PONUDAPRO V1.0
   ========================================= */

* {
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;

    --sidebar: #0f172a;
    --sidebar-light: #1e293b;

    --background: #f4f7fb;
    --card: #ffffff;

    --text: #172033;
    --muted: #64748b;

    --border: #e2e8f0;
    --danger: #dc2626;

    --radius: 16px;
    --radius-large: 24px;

    --shadow:
        0 12px 35px rgba(15, 23, 42, 0.07);

    --shadow-large:
        0 20px 60px rgba(15, 23, 42, 0.10);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background: var(--background);
    color: var(--text);

    min-height: 100vh;
}


/* =========================================
   SIDEBAR
   ========================================= */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;

    width: 260px;
    height: 100vh;

    padding: 28px 18px;

    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.32),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            #111c34 0%,
            #0f172a 55%,
            #0b1120 100%
        );

    color: white;

    z-index: 100;

    box-shadow:
        12px 0 35px rgba(15, 23, 42, 0.08);
}


/* LOGO */

.logo {
    margin: 0 10px 30px;

    font-size: 27px;
    font-weight: 800;

    letter-spacing: -1px;
}

.logo::after {
    content: ".";

    color: #60a5fa;
}


/* JEZIK */

.language-box {
    display: flex;
    align-items: center;

    gap: 8px;

    margin: 0 6px 30px;

    padding: 7px 9px;

    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 12px;
}

.language-box span {
    font-size: 15px;
}

.language-box select {
    width: 100%;

    padding: 8px 5px;

    border: 0;
    outline: none;

    background: transparent;
    color: white;

    font-size: 13px;

    cursor: pointer;
}

.language-box select option {
    color: #172033;
    background: white;
}


/* NAVIGACIJA */

.menu-item {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-bottom: 8px;

    padding: 14px 15px;

    border-radius: 12px;

    color: #cbd5e1;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.08);

    color: white;

    transform: translateX(3px);
}

.menu-item.active {
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #3b82f6
        );

    color: white;

    box-shadow:
        0 8px 22px rgba(37, 99, 235, 0.30);
}


/* =========================================
   GLAVNI SADRŽAJ
   ========================================= */

.content {
    margin-left: 260px;

    min-height: 100vh;

    padding:
        58px
        clamp(30px, 5vw, 85px)
        80px;
}

.page {
    display: none;

    animation: pageFade 0.25s ease;
}

.page.active-page {
    display: block;
}

@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   HERO
   ========================================= */

.hero {
    max-width: 850px;
}

.small-title {
    display: inline-block;

    margin: 0 0 12px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.8px;
}

.hero h1 {
    max-width: 780px;

    margin: 0 0 18px;

    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.04;

    letter-spacing: -2px;
}

.description {
    max-width: 720px;

    margin: 0 0 10px;

    color: var(--muted);

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================
   GLAVNA KARTICA
   ========================================= */

.calculator-card {
    width: 100%;
    max-width: 1050px;

    margin-top: 38px;

    padding: 34px;

    background: var(--card);

    border: 1px solid rgba(226, 232, 240, 0.85);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow);
}


/* =========================================
   SEKCIJE FORME
   ========================================= */

.form-section {
    padding: 8px 0 34px;

    margin-bottom: 30px;

    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 25px;

    margin-bottom: 22px;
}

.section-heading > div {
    display: flex;
    align-items: center;

    gap: 12px;
}

.section-heading h3 {
    margin: 0;

    font-size: 20px;
    letter-spacing: -0.3px;
}

.section-heading p {
    max-width: 420px;

    margin: 2px 0 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.5;

    text-align: right;
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;

    padding: 0 9px;

    background: var(--primary-light);

    color: var(--primary);

    border-radius: 10px;

    font-size: 12px;
    font-weight: 800;
}


/* =========================================
   LABEL / INPUT / SELECT / TEXTAREA
   ========================================= */

label {
    display: block;

    margin: 0 0 8px;

    color: #334155;

    font-size: 13px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid var(--border);

    border-radius: 11px;

    outline: none;

    background: #ffffff;

    color: var(--text);

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: #a0aec0;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #cbd5e1;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.10);
}

textarea {
    resize: vertical;

    min-height: 105px;
}


/* =========================================
   GRIDOVI
   ========================================= */

.client-grid,
.offer-info-grid,
.offer-extra-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.offer-note {
    margin-top: 22px;
}


/* =========================================
   STRUKA
   ========================================= */

#trade {
    max-width: 460px;

    padding: 14px;

    font-weight: 650;

    background: #fbfdff;
}


/* =========================================
   BRZI RADOVI
   ========================================= */

.quick-work-box {
    margin-top: 24px;

    padding: 22px;

    background:
        linear-gradient(
            135deg,
            #f8fbff,
            #f4f7fc
        );

    border: 1px solid #e4eaf2;

    border-radius: 18px;
}

.quick-work-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 16px;
}

.quick-label {
    display: block;

    margin-bottom: 4px;

    color: var(--primary);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.quick-work-header h4 {
    margin: 0;

    font-size: 17px;
}

.quick-help {
    color: var(--muted);

    font-size: 12px;
}

.quick-works {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;
}

.quick-work-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 82px;

    padding: 13px;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    background: white;

    color: var(--text);

    text-align: left;

    cursor: pointer;

    box-shadow:
        0 2px 7px rgba(15, 23, 42, 0.025);

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.quick-work-button:hover {
    transform: translateY(-2px);

    border-color: #93c5fd;

    background: #fbfdff;

    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.09);
}

.quick-work-button span {
    font-size: 13px;
    font-weight: 700;

    line-height: 1.35;
}

.quick-work-button small {
    margin-top: 10px;

    color: var(--primary);

    font-size: 11px;
    font-weight: 800;
}

.no-quick-works {
    grid-column: 1 / -1;

    margin: 0;

    padding: 18px;

    color: var(--muted);

    background: white;

    border-radius: 12px;

    font-size: 13px;
}


/* =========================================
   STAVKE PONUDE
   ========================================= */

.items-header {
    display: grid;

    grid-template-columns:
        minmax(180px, 2.2fr)
        minmax(90px, 0.8fr)
        minmax(90px, 0.8fr)
        minmax(110px, 0.9fr)
        minmax(100px, 0.9fr)
        42px;

    gap: 10px;

    padding: 0 12px 9px;

    color: #94a3b8;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.6px;

    text-transform: uppercase;
}

.offer-item {
    display: grid;

    grid-template-columns:
        minmax(180px, 2.2fr)
        minmax(90px, 0.8fr)
        minmax(90px, 0.8fr)
        minmax(110px, 0.9fr)
        minmax(100px, 0.9fr)
        42px;

    gap: 10px;

    align-items: center;

    margin-bottom: 10px;

    padding: 11px;

    background: #f8fafc;

    border: 1px solid #edf1f5;

    border-radius: 13px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.offer-item:focus-within {
    border-color: #bfdbfe;

    background: #fbfdff;
}

.offer-item input,
.offer-item select {
    margin: 0;

    padding: 11px 10px;

    background: white;

    font-size: 13px;
}

.item-total {
    padding-right: 3px;

    color: var(--primary-dark);

    font-size: 13px;
    font-weight: 800;

    text-align: right;

    white-space: nowrap;
}

.delete-item {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;

    border-radius: 10px;

    background: #ffffff;

    color: #94a3b8;

    font-size: 20px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.delete-item:hover {
    background: #fee2e2;

    color: var(--danger);

    transform: scale(1.04);
}


/* =========================================
   DODAJ STAVKU
   ========================================= */

.add-item-button {
    margin-top: 8px;

    padding: 11px 16px;

    border: 1px solid #bfdbfe;

    border-radius: 10px;

    background: var(--primary-light);

    color: var(--primary-dark);

    font-family: inherit;
    font-size: 13px;
    font-weight: 750;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.add-item-button:hover {
    transform: translateY(-1px);

    background: #dbeafe;

    border-color: #93c5fd;
}


/* =========================================
   UKUPNO
   ========================================= */

.offer-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    margin-top: 8px;

    padding: 24px 26px;

    background:
        linear-gradient(
            135deg,
            #eff6ff 0%,
            #f8fbff 100%
        );

    border: 1px solid #dbeafe;

    border-radius: 18px;
}

.summary-label {
    display: block;

    margin-bottom: 5px;

    color: var(--primary);

    font-size: 10px;
    font-weight: 850;

    letter-spacing: 1.1px;
}

.offer-summary p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
}

.offer-summary strong {
    color: var(--primary-dark);

    font-size: 31px;
    letter-spacing: -1px;

    white-space: nowrap;
}


/* =========================================
   GLAVNI GUMB
   ========================================= */

.generate-button {
    width: 100%;

    margin-top: 18px;

    padding: 15px 20px;

    border: 0;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #3b82f6
        );

    color: white;

    font-family: inherit;
    font-size: 15px;
    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.generate-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(37, 99, 235, 0.28);

    filter: brightness(1.02);
}

.generate-button:active {
    transform: translateY(0);
}


/* =========================================
   POČETNA
   ========================================= */

#home .hero {
    max-width: 900px;
}

#home .hero h1 {
    max-width: 820px;

    margin-top: 6px;
}

#home .generate-button {
    width: auto;

    min-width: 210px;

    margin-top: 24px;

    padding-left: 24px;
    padding-right: 24px;
}


/* PODRŠKA ZA STARIJI HOME LAYOUT */

.home-layout {
    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    gap: 50px;

    align-items: center;
}

.home-actions {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 25px;
}

.secondary-button {
    padding: 14px 22px;

    border: 1px solid var(--border);

    border-radius: 11px;

    background: white;

    color: var(--text);

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.secondary-button:hover {
    background: #f8fafc;
}

.home-features {
    display: flex;

    flex-wrap: wrap;

    gap: 12px 20px;

    margin-top: 25px;
}

.feature-item {
    color: #475569;

    font-size: 13px;
    font-weight: 650;
}


/* =========================================
   PREVIEW PONUDE
   ========================================= */

.home-preview {
    display: flex;
    justify-content: center;
}

.preview-card {
    width: 100%;
    max-width: 430px;

    padding: 25px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 20px;

    box-shadow: var(--shadow-large);
}

.preview-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 25px;
}

.preview-label {
    margin-bottom: 6px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.2px;
}

.preview-top h3 {
    margin: 0;

    font-size: 22px;
}

.preview-status {
    padding: 7px 10px;

    background: #dcfce7;

    color: #15803d;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 750;
}

.preview-client {
    display: flex;
    justify-content: space-between;

    padding: 14px 0;

    margin-bottom: 10px;

    border-top: 1px solid #edf0f3;
    border-bottom: 1px solid #edf0f3;
}

.preview-client span,
.preview-line span {
    color: var(--muted);
}

.preview-line {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    padding: 15px 0;

    border-bottom: 1px solid #edf0f3;
}

.preview-line div {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.preview-line span {
    font-size: 12px;
}

.preview-total {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-top: 20px;

    font-size: 17px;
}

.preview-total strong {
    font-size: 24px;
}


/* =========================================
   MOJE PONUDE
   ========================================= */

.saved-offer-card {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 12px;

    padding: 18px 20px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 14px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.saved-offer-card:hover {
    transform: translateY(-1px);

    border-color: #cbd5e1;

    box-shadow:
        0 7px 20px rgba(15, 23, 42, 0.05);
}

.saved-offer-info strong {
    font-size: 15px;
}

.saved-offer-info p {
    margin: 5px 0;

    color: #475569;

    font-size: 14px;
}

.saved-offer-info small {
    color: #94a3b8;
}

.saved-offer-right {
    display: flex;
    align-items: center;

    gap: 20px;
}

.saved-offer-total {
    color: var(--text);

    font-size: 16px;

    white-space: nowrap;
}

.saved-offer-actions {
    display: flex;

    gap: 7px;
}

.offer-pdf-button,
.offer-delete-button {
    padding: 9px 13px;

    border: 0;

    border-radius: 9px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.offer-pdf-button {
    background: var(--primary-light);

    color: var(--primary-dark);
}

.offer-pdf-button:hover {
    background: #dbeafe;
}

.offer-delete-button {
    background: #fff1f2;

    color: #be123c;
}

.offer-delete-button:hover {
    background: #ffe4e6;
}


/* =========================================
   PROFIL
   ========================================= */

#profile .calculator-card {
    max-width: 720px;
}

#profile .calculator-card label:not(:first-child) {
    margin-top: 18px;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1100px) {

    .content {
        padding: 48px 38px 70px;
    }

    .quick-works {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .items-header {
        display: none;
    }

    .offer-item {
        grid-template-columns:
            2fr 1fr 1fr;
    }

    .item-total {
        text-align: left;
    }

    .delete-item {
        width: 100%;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 760px) {

    body {
        padding-bottom: 82px;
    }


    /* Sidebar postaje donji meni */

    .sidebar {
        position: fixed;

        top: auto;
        bottom: 0;
        left: 0;

        display: grid;

        grid-template-columns:
            repeat(4, 1fr);

        width: 100%;
        height: 72px;

        padding: 7px 8px;

        background: rgba(15, 23, 42, 0.97);

        backdrop-filter: blur(14px);

        box-shadow:
            0 -8px 30px rgba(15, 23, 42, 0.15);
    }

    .logo,
    .language-box {
        display: none;
    }

    .menu-item {
        flex-direction: column;
        justify-content: center;

        gap: 3px;

        min-width: 0;

        margin: 0;

        padding: 7px 3px;

        border-radius: 10px;

        font-size: 18px;
    }

    .menu-item span {
        max-width: 100%;

        overflow: hidden;

        color: #cbd5e1;

        font-size: 10px;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .menu-item:hover {
        transform: none;
    }

    .menu-item.active {
        background: rgba(37, 99, 235, 0.22);

        box-shadow: none;
    }

    .menu-item.active span {
        color: white;
    }


    /* Content */

    .content {
        margin-left: 0;

        padding:
            28px
            16px
            35px;
    }

    .hero h1 {
        margin-bottom: 14px;

        font-size: 36px;
        line-height: 1.08;

        letter-spacing: -1.4px;
    }

    .description {
        font-size: 15px;
        line-height: 1.6;
    }


    /* Kartica */

    .calculator-card {
        margin-top: 27px;

        padding: 20px 16px;

        border-radius: 18px;
    }


    /* Sekcije */

    .form-section {
        padding-bottom: 27px;

        margin-bottom: 25px;
    }

    .section-heading {
        display: block;

        margin-bottom: 18px;
    }

    .section-heading > div {
        margin-bottom: 7px;
    }

    .section-heading h3 {
        font-size: 18px;
    }

    .section-heading p {
        max-width: none;

        padding-left: 50px;

        font-size: 12px;

        text-align: left;
    }


    /* Forme */

    .client-grid,
    .offer-info-grid,
    .offer-extra-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    #trade {
        max-width: none;
    }


    /* Brzi radovi */

    .quick-work-box {
        margin-top: 20px;

        padding: 15px;

        border-radius: 15px;
    }

    .quick-work-header {
        align-items: flex-start;

        margin-bottom: 13px;
    }

    .quick-help {
        display: none;
    }

    .quick-works {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    .quick-work-button {
        min-height: 78px;

        padding: 11px;
    }


    /* Stavke */

    .offer-item {
        position: relative;

        display: grid;

        grid-template-columns:
            1fr 1fr;

        gap: 9px;

        padding: 12px;
    }

    .offer-item .item-name {
        grid-column: 1 / -1;
    }

    .offer-item .item-price {
        grid-column: 1 / 2;
    }

    .item-total {
        display: flex;
        align-items: center;
        justify-content: flex-end;

        min-height: 44px;

        padding: 0 8px;

        background: #eff6ff;

        border-radius: 9px;

        font-size: 14px;
    }

    .delete-item {
        grid-column: 1 / -1;

        width: 100%;
        height: 38px;

        background: #fff1f2;

        color: #be123c;

        font-size: 18px;
    }


    /* Ukupno */

    .offer-summary {
        display: block;

        padding: 20px;

        border-radius: 15px;
    }

    .offer-summary strong {
        display: block;

        margin-top: 13px;

        font-size: 30px;
    }


    /* Saved offers */

    .saved-offer-card {
        align-items: flex-start;

        padding: 15px;
    }

    .saved-offer-right {
        flex-direction: column;
        align-items: flex-end;

        gap: 9px;
    }

    .saved-offer-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }


    /* Home */

    #home .generate-button {
        width: 100%;
    }

    .home-layout {
        grid-template-columns: 1fr;
    }

    .home-preview {
        justify-content: flex-start;
    }

}


/* =========================================
   MALI MOBITELI
   ========================================= */

@media (max-width: 390px) {

    .content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .calculator-card {
        padding-left: 12px;
        padding-right: 12px;
    }

    .quick-works {
        grid-template-columns: 1fr 1fr;
    }

    .menu-item span {
        font-size: 9px;
    }
}/* =========================================
   FINANCIJSKI SAŽETAK
   ========================================= */

.price-breakdown {
    margin-top: 10px;
    margin-bottom: 14px;

    padding: 18px 22px;

    background: #f8fafc;

    border: 1px solid var(--border);

    border-radius: 15px;
}

/* =========================================
   KVONTRA SIGNATURE THEME
   ========================================= */

:root {
    --primary: #e95d3f;
    --primary-dark: #b83d29;
    --primary-light: #fff0e8;
    --sidebar: #102a23;
    --sidebar-light: #193b32;
    --background: #f3efe5;
    --card: #fffdf8;
    --text: #17231f;
    --muted: #68756f;
    --border: #ded9cc;
    --accent: #f1b84b;
    --mint: #8bc6ad;
    --radius: 14px;
    --radius-large: 26px;
    --shadow: 0 16px 40px rgba(28, 48, 40, .09);
    --shadow-large: 0 28px 75px rgba(18, 42, 35, .18);
}

body {
    background:
        radial-gradient(circle at 92% 4%, rgba(241,184,75,.17), transparent 29rem),
        linear-gradient(135deg, #f7f3e9 0%, #f1eee6 58%, #edf2eb 100%);
}

.sidebar {
    width: 272px;
    padding: 26px 20px;
    background:
        radial-gradient(circle at 20% 4%, rgba(139,198,173,.2), transparent 18rem),
        linear-gradient(180deg, #173c32 0%, #102a23 58%, #0a1e19 100%);
    box-shadow: 14px 0 45px rgba(16,42,35,.12);
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 8px 28px;
    font-size: 25px;
    letter-spacing: -.8px;
}

.logo::after { display: none; }

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px 12px 12px 4px;
    background: linear-gradient(145deg, var(--accent), #ff805e);
    color: #102a23;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

.language-box {
    border-color: rgba(255,255,255,.11);
    background: rgba(255,255,255,.065);
}

.menu-item { color: #bdd0c8; border-radius: 14px; }
.menu-item:hover { background: rgba(255,255,255,.075); }
.menu-item.active {
    background: #f7f1e5;
    color: #173c32;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.content {
    margin-left: 272px;
    padding: 54px clamp(28px,5vw,82px) 84px;
}

.small-title {
    color: var(--primary-dark);
    letter-spacing: 2.2px;
}

.hero h1 { color: #132a22; }

.calculator-card,
.saved-offer-card,
.preview-card {
    background: rgba(255,253,248,.94);
    border-color: rgba(191,181,162,.58);
}

.calculator-card { box-shadow: var(--shadow); }

.section-number {
    background: #173c32;
    color: #f8d27b;
    border-radius: 12px 12px 12px 4px;
}

label { color: #29433a; }
input, select, textarea { background: #fffefa; border-color: #d9d4c8; }
input:focus, select:focus, textarea:focus {
    border-color: #d85338;
    box-shadow: 0 0 0 4px rgba(233,93,63,.11);
}

#trade { background: #fffaf1; }

.quick-work-box {
    background: linear-gradient(135deg, #edf4ef, #f8f2e7);
    border-color: #d7dfd7;
}
.quick-label { color: #28705c; }
.quick-work-button { border-color: #d8ddd4; background: #fffdf8; }
.quick-work-button:hover {
    border-color: #e95d3f;
    background: #fff8f1;
    box-shadow: 0 9px 22px rgba(91,69,48,.1);
}
.quick-work-button small { color: #b83d29; }

.offer-item { background: #f7f4ec; border-color: #e5dfd2; }
.offer-item:focus-within { border-color: #df8d78; background: #fffaf4; }
.item-total { color: #173c32; }

.add-item-button,
.offer-pdf-button {
    border-color: #b9d5c8;
    background: #e5f1eb;
    color: #205d4c;
}
.add-item-button:hover,
.offer-pdf-button:hover { background: #d8ebe2; border-color: #83b8a1; }

.price-breakdown { background: #f7f4ec; border-color: #e1dbcf; }

.offer-summary {
    background:
        radial-gradient(circle at 88% 10%, rgba(241,184,75,.23), transparent 14rem),
        linear-gradient(135deg, #173c32, #102a23);
    border-color: #173c32;
    color: white;
    box-shadow: 0 18px 38px rgba(16,42,35,.18);
}
.offer-summary .summary-label { color: #f5c964; }
.offer-summary p { color: #bad0c7; }
.offer-summary strong { color: #fffaf0; }

.generate-button {
    background: linear-gradient(135deg, #e95d3f, #f17b47 58%, #eea044);
    box-shadow: 0 10px 24px rgba(201,71,42,.24);
}
.generate-button:hover { box-shadow: 0 15px 32px rgba(201,71,42,.32); }

/* Prepoznatljiv početni ekran */
#home { min-height: calc(100vh - 138px); }
#home .home-layout {
    grid-template-columns: minmax(0,1.02fr) minmax(380px,.98fr);
    gap: clamp(36px,6vw,88px);
    min-height: calc(100vh - 142px);
}
#home .hero { max-width: 700px; }
#home .hero h1 {
    max-width: 680px;
    font-size: clamp(48px,5.6vw,78px);
    line-height: .98;
    letter-spacing: -4px;
}
#home .description { max-width: 640px; }
#home .description + .description { color: #52655d; }
#home .generate-button {
    border-radius: 15px 15px 15px 5px;
    min-width: 230px;
    padding: 17px 27px;
}

.home-features { gap: 10px; }
.feature-item {
    padding: 9px 12px;
    border: 1px solid #d9d2c5;
    border-radius: 999px;
    background: rgba(255,253,248,.7);
    color: #496159;
}
.feature-item b { color: #173c32; }

.preview-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 520px);
    min-height: 530px;
    padding: 50px 34px;
    overflow: hidden;
    border-radius: 52px 52px 52px 14px;
    background:
        radial-gradient(circle at 70% 18%, rgba(241,184,75,.34), transparent 13rem),
        linear-gradient(145deg, #204b3f, #0d2921);
    box-shadow: 0 30px 80px rgba(16,42,35,.24);
}

.preview-stage::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 38px 38px 38px 8px;
}

.preview-stage .preview-card {
    position: relative;
    z-index: 2;
    max-width: 385px;
    padding: 25px;
    transform: rotate(-2deg);
    border: 0;
    border-radius: 18px 18px 18px 5px;
    box-shadow: 0 28px 55px rgba(0,0,0,.3);
}

.preview-brand { display:flex; align-items:center; gap:8px; color:#173c32; }
.preview-brand span {
    display:grid; place-items:center; width:27px; height:27px;
    border-radius:8px 8px 8px 3px; background:#f1b84b; font-weight:900;
}
.preview-brand strong { font-size:12px; letter-spacing:1.6px; }
.preview-stage .preview-status { background:#e8f2ed; color:#246450; }
.preview-document-title { display:flex; justify-content:space-between; align-items:end; margin:6px 0 19px; }
.preview-document-title span { color:#8a8f89; font-size:10px; font-weight:800; letter-spacing:1.4px; }
.preview-document-title strong { color:#173c32; font-size:18px; }
.preview-stage .preview-client { font-size:11px; }
.preview-stage .preview-line { align-items:center; padding:13px 0; }
.preview-stage .preview-line div { gap:3px; }
.preview-stage .preview-line span { color:#d26046; font-size:9px; font-weight:800; }
.preview-stage .preview-line strong { font-size:12px; }
.preview-stage .preview-line b { font-size:12px; white-space:nowrap; }
.preview-stage .preview-total { color:#173c32; }
.preview-stage .preview-total span { font-size:10px; font-weight:900; letter-spacing:1.2px; }

.preview-orbit { position:absolute; border:1px solid rgba(255,255,255,.12); border-radius:50%; }
.preview-orbit-one { width:390px; height:390px; top:-180px; right:-145px; }
.preview-orbit-two { width:270px; height:270px; bottom:-145px; left:-85px; }
.preview-float {
    position:absolute; z-index:3; display:grid; place-items:center;
    border-radius:13px 13px 13px 4px; box-shadow:0 15px 28px rgba(0,0,0,.22); font-weight:900;
}
.preview-float-top { top:57px; right:19px; width:46px; height:46px; background:#f1b84b; color:#173c32; font-size:20px; }
.preview-float-bottom { left:18px; bottom:50px; padding:11px 13px; background:#e95d3f; color:white; font-size:11px; letter-spacing:1px; }

.saved-offer-card:hover { border-color: #bfad98; box-shadow: 0 10px 24px rgba(28,48,40,.08); }

@media (max-width: 1100px) {
    #home .home-layout { grid-template-columns: 1fr; }
    #home .home-preview { justify-content: flex-start; }
    .preview-stage { max-width: 620px; }
}

@media (max-width: 760px) {
    body { background: linear-gradient(160deg,#f7f2e7,#eef1e9); }
    .sidebar {
        width:100%; height:72px; padding:7px 8px;
        background:rgba(12,34,28,.96);
        box-shadow:0 -10px 35px rgba(16,42,35,.2);
    }
    .content { margin-left:0; padding:26px 16px 38px; }
    .menu-item.active { background:rgba(241,184,75,.18); color:#ffd778; }
    .menu-item.active span { color:#fff7e6; }
    #home { min-height:auto; }
    #home .home-layout { min-height:auto; gap:32px; }
    #home .hero h1 { font-size:clamp(40px,12vw,55px); letter-spacing:-2.8px; }
    #home .hero h1 br { display:none; }
    .home-features { gap:7px; }
    .feature-item { font-size:11px; padding:7px 9px; }
    .preview-stage { min-height:400px; padding:44px 25px; border-radius:34px 34px 34px 10px; }
    .preview-stage .preview-card { padding:19px; }
    .preview-float-top { top:34px; }
    .preview-float-bottom { bottom:31px; }
    .item-total { background:#e5f1eb; }
    .offer-summary { border-radius:18px 18px 18px 6px; }
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 8px 0;

    color: var(--muted);

    font-size: 13px;
}

.price-row + .price-row {
    border-top: 1px solid #edf1f5;
}

.price-row strong {
    color: var(--text);

    font-size: 14px;

    white-space: nowrap;
}

@media (max-width: 760px) {

    .price-breakdown {
        padding: 15px;
    }

    .price-row {
        font-size: 12px;
    }
}
