:root {
    --primary-color: #4f46e5;
    --primary-light: #818cf8;
    --bg-color: #102235;
    --text-color: #f5f2f2;
    --sidebar-bg: rgba(30, 41, 59, 0.8);
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --accent-color: #38bdf8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;


    background-color: var(--bg-color);
    color: var(--text-color);

    background: #525252;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #3d72b4, #0419d8);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #3d72b4, #0419d8);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

    /* Uklanjanje zadane margine */
    margin: 0;
    padding: 0;
}

.sidebar {
    height: calc(100% - 40px);
    width: 70px;
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow-x: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    white-space: nowrap;
    z-index: 1000;
}

.sidebar-header {
    padding: 25px 15px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 10px;
    flex-shrink: 0;
}

.sidebar-header img {
    height: 40px;
    width: auto;
    transition: height 0.4s;
}

.sidebar:hover .sidebar-header img {
    height: 60px;
}

.sidebar a {
    padding: 15px 22px;
    text-decoration: none;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    margin: 8px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.sidebar a:hover {
    background-color: var(--sidebar-hover);
    color: white;
    transform: translateX(5px);
}

.sidebar a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.sidebar:hover {
    width: 220px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
}



.sidebar-footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    border-top: 1px solid var(--glass-border);
    padding-top: 10px;
}

.mobile-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    z-index: 1100;
    /* Higher z-index to stay above everything */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

@media (min-width: 1025px) {
    .mobile-toggle {
        display: none !important;
    }
}

/* FAQ Styles */
.faq-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: white;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 20px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-question i {
    transition: transform 0.3s ease;
}

/* Procedure Modern Styles */
.procedure-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.procedure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    padding-left: 45px;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: -30px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 0 15px var(--primary-color);
    z-index: 1;
}

.checklist {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
}

.checklist-item i {
    color: #10b981;
    /* Success green */
}


.close-sidebar {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close-sidebar:hover {
    opacity: 1;
}

@media (max-width: 1024px) {
    .sidebar {
        left: -300px;
        width: 260px;
        height: 100%;
        top: 0;
        border-radius: 0 20px 20px 0;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar.open {
        left: 0;
    }

    #main {
        margin-left: 0 !important;
        padding-top: 80px;
    }

    .sidebar-header img {
        width: 120px;
    }

    .sidebar:hover {
        width: 260px;
    }
}

.sidebar a i {
    min-width: 25px;
    font-size: 20px;
    margin-right: 15px;
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease;
}

.sidebar a:hover i {
    transform: scale(1.1);
}

#main {
    padding: 20px;
    margin-left: 110px;
    /* Space for the rail sidebar */
    transition: none;
    /* Removed transition as content won't move anymore */
}

.top-info-bar {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    margin: -20px -20px 20px -20px;
    color: white;
    font-size: 14px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item i {
    color: var(--primary-light);
}

.info-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.info-item a:hover {
    color: white;
}

.hero-section {
    background: url('/api/placeholder/1920/1080'),
        url('/pic/banner2.jpg');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 60px 0 40px;
    overflow: hidden;
    position: relative;
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.text-container {
    position: absolute;
    /* Apsolutno pozicioniranje za pomjeranje */
    top: 22%;
    /* Pomjeranje prema gore (20% od vrha hero sekcije) */
    left: 50%;
    /* Centriranje prema horizontalnoj osi */
    transform: translateX(-50%);
    /* Centriranje horizontalno */
    text-align: center;
    /* Centriranje teksta unutar kontejnera */
}

.button-container {
    position: absolute;
    /* Apsolutno pozicioniranje za dugmad */
    top: 41%;
    /* Pomjeranje dugmadi prema dolje (70% od vrha hero sekcije) */
    left: 50%;
    /* Centriranje prema horizontalnoj osi */
    transform: translateX(-50%);
    /* Centriranje horizontalno */
    margin-top: 20px;

}

.hero-text {
    background: linear-gradient(to right, #003366, #00509e);
    /* Gradijent od tamno plave do svijetle plave */

    -webkit-text-fill-color: transparent;
    /* Tekst punjenje transparentno za gradijent */
}

.service-card {
    transition: transform 0.3s ease-in-out;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* Centriranje cijele sekcije */
.about-section {
    text-align: left;
}

/* Poravnanje teksta lijevo unutar centrirane liste */
.about-section ul {
    display: inline-block;
    text-align: left;
    list-style-type: none;
}

.about-section ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

/* Oznake (ikone) u listi */
.about-section ul li::before {
    content: '•';
    color: #6366F1;
    /* Boja oznake */
    position: absolute;
    left: 0;
}

/* Stilizacija za sekciju "O nama" */
.about-section {

    text-align: left;
    padding: 20px;
}

/* Stilizacija za sekciju "Ono što nas izdvaja" */
.features-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.features-section h2 {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.features {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    max-width: 300px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: black;
}

.feature-item p {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 15px;
}

.feature-item a {
    font-size: 0.9em;
    color: #007bff;
    text-decoration: none;
}

.feature-item a:hover {
    text-decoration: underline;
}

.underlined-heading {
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.underlined-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #2563eb;
    /* plava boja */
}

centered-heading {
    text-align: center;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.centered-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #2563eb;
    /* plava boja */
}

.logo-slider {
    display: flex;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.logo-slide {
    flex-shrink: 0;
    min-width: 100px;
    /* Prilagodite ovu vrijednost za optimalni razmak */
    animation: scroll 30s linear infinite;
}

.logo-slide img {
    max-width: 100px;
    /* prilagodite prema potrebi */
    height: auto;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Pauzira animaciju na hover */
.logo-slider:hover .logo-slide {
    animation-play-state: paused;
}

.logo-slider {
    gap: 20px;
    /* Prilagodite prema potrebi */
}

/* Responsive prilagodbe */
@media (max-width: 768px) {

    .logo-slide img {
        height: 3rem;
    }

    .globe-image {
        max-width: 30%;
        /* Već postoji, ali možete je dodatno smanjiti */
        /* Ili dodajte: */
        width: 50%;
        /* Fiksna širina */
        height: auto;
        /* Zadržava proporcionalni odnos */
    }

    .document-image {
        max-width: 40%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: auto;
        /* Dodatno pomaže u centriranju */
        max-width: 100px;
        /* Smanjuje širinu slike na mobilnim uređajima */
    }

    .document-image-obrada {
        max-width: 80%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: auto;
        /* Dodatno pomaže u centriranju */
        max-width: 100px;
        /* Smanjuje širinu slike na mobilnim uređajima */
    }

    .map-container {
        width: 70vw;
        /* 90% širine viewporta */
        margin: 0 auto;
    }

    .export-section,
    .documents-section {
        flex-direction: column;
        padding: 10px;
    }

    .document-container {
        max-width: 40%;
        display: flex;
        justify-content: center;
        /* Horizontalno centriranje */
        align-items: center;
        /* Vertikalno centriranje */
    }

    .hero-section {
        background-position: top;
        /* Postavlja početak slike na vrh */
        background-size: cover;
        /* Osigurava da slika pokrije cijelu širinu */
        height: 40vh;
        /* Možete prilagoditi visinu za mobile */
        padding: 20px 0;
        /* Smanjeni padding za mobilnu verziju */
        margin-top: 0;
        /* Uklanja bilo kakvu gornju marginu */
    }
}

@media (max-width: 480px) {

    .document-container {
        padding-right: 40px;
        /* Još više prema desno na manjim ekranima */
    }

    .hero-section {

        /* Još manja visina za manje ekrane ako je potrebno */
        background-size: 200% auto;
        /* Alternativni pristup za scaling slike */
    }

    .globe-image {
        max-width: 40%;
        /* Još manje za najmanje ekrane */
        /* Ili: */
        width: 40%;
    }

    .document-image-obrada {
        max-width: 90%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: auto;
        /* Dodatno pomaže u centriranju */
        max-width: 100px;
        /* Smanjuje širinu slike na mobilnim uređajima */
    }
}

.small-image {
    width: 50%;
    /* Smanjuje veličinu slike za 50% */
}

.document-image {
    max-width: 30%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
    /* Dodatno pomaže u centriranju */
    max-width: 100px;
    transform: rotate(5deg);
    padding: auto;
}

.paragraflijevi {
    text-align: justify;
    padding-bottom: 10px;
}


/* Zajednički stilovi za izvoz/uvoz sekcije */
.export-section,
.documents-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 30px;
    padding: 20px;
    margin-bottom: 40px;
}

/* Kontejner za sadržaj (tekst) */
.content-container {
    flex: 1;
    max-width: 70%;
    text-align: center;
    /* Centriranje teksta */
    padding-right: 20px;
}

/* Zajedničke sekcije */
.export-section,
.documents-section {
    display: flex;
    align-items: flex-start;
    width: 100%;
    gap: 30px;
    padding: 20px;
    margin-bottom: 40px;
}

/* Kontejner za sadržaj */
.content-container {
    flex: 1;
    text-align: center;
    padding-right: 20px;
    max-width: 70%;
}

/* Kontejneri za slike */

.document-container {
    flex: 0 0 20%;
    display: flex;
    align-items: flex-start;

}

/* Za slike na lijevoj strani */
.export-section .globe-container {
    justify-content: flex-start;
    padding-left: 30px;
}

/* Za slike na desnoj strani */
.documents-section {
    justify-content: flex-end;
    padding-right: 20px;
}

/* Zajednički stilovi za slike */
.globe-image {
    max-width: 70%;
    height: auto;
    object-fit: contain;
}

/* Stilovi za liste */
.requirements-list {
    text-align: left;
    margin: 20px auto;
    max-width: 800px;
    margin-bottom: 1em;
    /* Dodaje razmak ispod svake stavke */

}

.content-container {
    max-width: 100%;
    padding: 0;
    order: 2;
}

.globe-container,
.document-container {
    width: 100%;
    justify-content: center;
    padding: 0;
    order: 1;
    flex: 0 0 30%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-right: 20px;
}


.title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.4;
    text-align: left;

}

.section-heading {
    padding-top: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    margin-top: 15px;
    padding-bottom: 10px;
    text-align: left;


}

.example {
    text-align: left;
    padding-bottom: 15px;

}

.description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.question {
    font-size: 18px;
    margin-bottom: 10px;
}

.logo {
    max-width: 200px;
    margin-top: 20px;
}

.documents-section {
    background-color: #de9a08;
    padding: 20px;
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    gap: 40px;
    min-height: 600px;
}

.export-section {
    background-color: #3498db;
    padding: 40px;
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    gap: 40px;
    min-height: 600px;
}

.content-container {
    flex: 1;
}

.image-container {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    padding-left: 25px;
    margin-bottom: 12px;
    position: relative;
    font-size: 16px;
    line-height: 1.4;
}

.requirements-list li::before {
    content: "•";
    color: #246df4;
    position: absolute;
    left: 0;
    font-size: 20px;
}

.subtitle {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-note {
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.6;
}




.form-group {
    position: relative;
    margin-bottom: 10px;

}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-label {
    position: absolute;
    left: 1rem;
    top: 0.75rem;
    color: #64748b;
    transition: all 0.3s ease;
    pointer-events: none;
    background-color: white;
    padding: 0 0.25rem;
}

.form-control:focus~.form-label,
.form-control:not(:placeholder-shown)~.form-label {
    transform: translateY(-1.4rem) scale(0.85);
    color: #6366F1;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background: linear-gradient(to right, #3d72b4, #0419d8);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-start;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.submit-button:active {
    transform: translateY(0);
}

/* Success Message */
.success-message {
    display: none;
    background-color: #10B981;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error States */
.form-control.error {
    border-color: #EF4444;
}

.error-message {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .contact-section {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    .submit-button {
        width: 100%;
    }
}


/* Stil za kontakt sekciju */
.contact-section {
    width: 100%;
    padding: 5;

}

.contact-title {
    font-size: 1.8em;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
    /* Razmak ispod naslova kontakt sekcije */
}

.contact-section {
    padding: 4rem 2rem;
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    /* Razmak iznad kontakt sekcije */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    /* Maksimalna širina kontakt forme */

}

/* Sekcija za mapu */
.map-section {
    width: 100%;
    max-width: 1200px;
    /* Možete podesiti maksimalnu širinu po potrebi */
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Kontejner za mapu */
.map-container {
    max-width: 800px;
    position: relative;
    margin: 0 auto;
    /* Centriranje kontejnera */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    overflow: hidden;
    padding-bottom: 56.25%;
    /* Omjer 16:9 za responzivnost */
    height: 0;
}

/* Stil za iframe */
.map-container iframe {
    text-align: center;
    margin-bottom: 20px;
}

/* Naslov mape */
.map-title {
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #ffffff;
    text-align: center;
    font-weight: 600;
    text-align: center;
}

.webcam-container,
map-section {
    width: 100%;
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
    border-radius: 8px;

}

.webcam-container h3,
.webcam-container p {
    margin-bottom: 20px;
    /* Razmak između teksta i slike */
}

.webcam-container a {
    color: #0066cc;
    text-decoration: none;
}

.webcam-container a:hover {
    text-decoration: underline;
}

.webcam-iframe-container {
    position: relative;
    overflow: hidden;
    padding-bottom: 75%;
    /* Omjer 4:3 (600/800) */
    height: 0;
}

.webcam-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

iframe {
    width: 100%;
    max-width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
}



/* Stilovi za sekciju "tarifa" */



.search-section,
.tariff-details-section,
.rates-section {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fcfcfc;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
textarea {
    width: calc(100% - 20px);
    /* Oduzimamo padding */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    /* Važno za širinu */
}

input[type="text"][readonly],
textarea[readonly] {
    background-color: #e9e9e9;
    color: #666;
}

textarea {
    resize: vertical;
    /* Omogućava korisniku da mijenja visinu textarea */
}

.detail-row {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    /* Omogućava prelamanje na manjim ekranima */
    align-items: center;
}

.detail-row label {
    flex: 0 0 120px;
    /* Fiksna širina labela */
    margin-right: 10px;
    text-align: right;
}

.detail-row input {
    flex: 1;
    /* Input polje zauzima preostali prostor */
    margin-bottom: 0;
    /* Ukloni donji margin jer je flex */
}

.detail-row.full-width label {
    flex: none;
    /* Resetuj flex za labelu */
    width: 100%;
    text-align: left;
    margin-right: 0;
}

.detail-row.full-width textarea {
    width: 100%;
}


/* Stil za autocomplete dropdown */
.autocomplete-results {
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    position: absolute;
    /* Potrebno za pozicioniranje ispod inputa */
    width: calc(900px - 60px);
    /* Prilagodite širinu kontejnera - paddinga */
    z-index: 1000;
    /* Osigurajte da je iznad ostalih elemenata */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 4px 4px;
}

.autocomplete-result-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.autocomplete-result-item:last-child {
    border-bottom: none;
}

.autocomplete-result-item:hover {
    background-color: #e0e0e0;
}

/* Tablica stopa */
#ratesTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

#ratesTable th,
#ratesTable td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

#ratesTable th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

#ratesTable tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Stil za crveni tekst ako je vrijednost > 0 */
.rate-highlight {
    color: red;
    font-weight: bold;
}

/* Osigurajte responsivnost */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .detail-row label {
        flex: 1 1 100%;
        /* Labela zauzima cijelu širinu */
        text-align: left;
        margin-right: 0;
        margin-bottom: 5px;
    }

    .detail-row input {
        width: 100%;
    }

    .autocomplete-results {
        width: calc(100% - 20px);
        /* Prilagodite širinu autocompletea */
    }
}

/* Sakrij red tablice ako nema podataka */
#ratesTable tbody tr:empty {
    display: none;
}