/* =========================================================
   eStrojar Cjenik
   Glavni vizualni stil
   ========================================================= */


/* ---------------------------------------------------------
   Osnovno
   --------------------------------------------------------- */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: #1f2933;
    background: #f4f7fa;

    line-height: 1.5;
}


/* ---------------------------------------------------------
   Glavni kontejner
   --------------------------------------------------------- */

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}


/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e1e7ec;
}

.header-inner {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.brand {
    text-decoration: none;
    color: #1f2933;
}

.brand-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    display: block;

    margin-top: 2px;

    font-size: 12px;
    font-weight: 500;

    color: #6b7280;
}


/* ---------------------------------------------------------
   Glavni sadržaj
   --------------------------------------------------------- */

.main {
    padding: 55px 0 70px;
}


/* ---------------------------------------------------------
   Naslov
   --------------------------------------------------------- */

.hero {
    text-align: center;

    margin-bottom: 35px;
}

.hero h1 {
    margin: 0;

    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;

    font-weight: 800;
    letter-spacing: -1px;

    color: #1f5f8b;
}

.hero-text {
    margin: 12px 0 0;

    font-size: 17px;
    color: #6b7280;
}


/* ---------------------------------------------------------
   Info kartica
   --------------------------------------------------------- */

.info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 28px;
    padding: 20px 24px;

    background: #ffffff;

    border: 1px solid #e1e7ec;
    border-radius: 14px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.update-label {
    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.6px;

    color: #6b7280;
}

.update-time {
    margin-top: 3px;

    font-size: 16px;
    font-weight: 700;

    color: #1f2933;
}

.status {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    font-size: 14px;
    font-weight: 700;

    color: #2e8b57;
}

.status-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #2e8b57;
}


/* ---------------------------------------------------------
   Gumb za CSV
   --------------------------------------------------------- */

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 12px 20px;

    border-radius: 9px;

    background: #1f5f8b;
    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.download-button:hover {
    background: #17496b;

    transform: translateY(-1px);

    box-shadow: 0 6px 15px rgba(31, 95, 139, 0.22);
}


/* ---------------------------------------------------------
   Tablica
   --------------------------------------------------------- */

.table-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e1e7ec;
    border-radius: 14px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.price-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 760px;
}

.price-table th {
    padding: 16px 20px;

    background: #1f5f8b;
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    text-align: left;
}

.price-table td {
    padding: 15px 20px;

    border-bottom: 1px solid #e1e7ec;

    font-size: 15px;
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.price-table tbody tr:hover {
    background: #f8fafc;
}

.price-table .service-name {
    font-weight: 600;
}

.price-table .price {
    font-weight: 800;
    white-space: nowrap;
}

.price-table .anchor-price {
    white-space: nowrap;
    color: #6b7280;
}

.no-sale {
    color: #9ca3af;
}


/* ---------------------------------------------------------
   Podnožje
   --------------------------------------------------------- */

.footer {
    padding: 25px 0 35px;

    text-align: center;

    font-size: 13px;
    color: #6b7280;
}

.footer p {
    margin: 4px 0;
}


/* ---------------------------------------------------------
   Mobilni uređaji
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .header-inner {
        min-height: 70px;
    }

    .brand-name {
        font-size: 21px;
    }

    .main {
        padding: 38px 0 50px;
    }

    .hero {
        margin-bottom: 25px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-text {
        font-size: 15px;
    }

    .info-card {
        align-items: flex-start;
        flex-direction: column;

        padding: 18px;
    }

    .download-button {
        width: 100%;
    }

    .table-card {
        border-radius: 10px;
    }
}

/* ---------------------------------------------------------
   Napomena o PDV-u
   --------------------------------------------------------- */

.tax-note {
    margin-top: 18px;

    padding: 14px 18px;

    background: #ffffff;

    border: 1px solid #e1e7ec;
    border-radius: 10px;

    text-align: center;

    font-size: 13px;
    font-weight: 600;

    color: #6b7280;
}

.th-note {
    display: block;

    margin-top: 2px;

    font-size: 11px;
    font-weight: 500;

    opacity: 0.85;
}

/* ---------------------------------------------------------
   Poravnanje stupaca cjenika
   --------------------------------------------------------- */

.price-table th:nth-child(2),
.price-table th:nth-child(3),
.price-table th:nth-child(4),
.price-table td:nth-child(2),
.price-table td:nth-child(3),
.price-table td:nth-child(4) {
    text-align: center;
}

/* ---------------------------------------------------------
   Klikabilan naziv usluge
   --------------------------------------------------------- */

.service-link {
    color: #1f2933;
    text-decoration: none;
    font-weight: 600;
}

.service-link:hover {
    color: #1f5f8b;
    text-decoration: underline;
}