/* --- Osnovno telo (Dark mode) --- */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #ececec;
    color: #444;
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #092038, #041220);
    padding: 10px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.navbar .logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.navbar .nav-links li a {
    color: #fff;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    transition: 0.3s;
}

.navbar .nav-links li a:hover {
    background: #fff;
    color: #0d1f3a;
}

.card {
	border: 1px solid #041221;
}

.order-card {
	border: 1px solid #041221;
}

/* --- Mobilni prikaz --- */
@media (max-width: 768px) {
    .navbar .nav-links {
        flex-direction: column;
    background: linear-gradient(to bottom, #092038, #041220);
        position: absolute;
        top: 50px;
        right: 0;
        width: 100%;
        display: none;
    }
    .navbar .nav-links.active {
        display: flex;
    }
}

/* --- Forma i inputi --- */
form {
    background: #ffffff;
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 500px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, input[type="file"] {
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px 0;
    border: 1px solid #333;
    background: #ececec;
    color: #444;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #0d1f3a;
    box-shadow: 0 0 6px #0d1f3a;
}

textarea {
    resize: vertical;
}

/* --- Button --- */
button {
    background-color: #0d1f3a;
    color: #ececec;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: 0.3s;
}

button:hover {
    background-color: #3399ff;
    color: #fff;
}

/* --- Tabele --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    text-align: left;
}

th {
    background-color: #0d1f3a;
    color: #ececec;
}

tr:nth-child(even) {
    background-color: #181818;
}

tr:hover {
    background-color: #222;
}

/* --- Slike proizvoda u tabelama i porudžbinama --- */
img {
    border-radius: 6px;
    max-width: 100%;
    height: auto;
}

/* --- Naslovi --- */
h2, h3 {
    text-align: center;
    margin-top: 20px;
    color: #0d1f3a;
}

/* --- Div za proizvode --- */
.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px;
}

.product {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.7);
    transition: 0.3s;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(77,184,255,0.5);
}

.product img {
    max-width: 100%;
    border-radius: 6px;
}


/* --- Forma i inputi (Dark mode) --- */
form {
    background: #ffffff;
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 500px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.8);
    color: #444;
}

label {
    display: block;
    font-weight: bold;
    color: #0d1f3a;
}

input[type="text"], input[type="email"], input[type="password"], 
input[type="number"], textarea, input[type="file"] {
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px 0;
    border: 1px solid #333;
    background: #ececec;
    color: #444;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    transition: 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #0d1f3a;
    box-shadow: 0 0 6px #0d1f3a;
}

textarea {
    resize: vertical;
}

/* --- Hamburger dugme --- */
.menu-toggle {
    display: none;
    font-size: 1.8em;
    color: #fff;
    cursor: pointer;
}

/* --- Mobilni prikaz navbar --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: #222;
        width: 100%;
        margin-top: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 10px 0;
        border-top: 1px solid #444;
    }

    .nav-links li a {
        font-size: 1.2em;
        display: block;
    }
}

/* --- Slideshow --- */
.slideshow-container {
    max-width: 1200px;
    position: relative;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.mySlides {
    display: none;
}

.mySlides img {
    width: 100%;
    height: 50%;
    display: block;
}

/* Strelice */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: #fff;
    font-weight: bold;
    font-size: 22px;
    transition: 0.3s;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: rgba(0,0,0,0.4);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.8);
}

/* Tačkice */
.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background 0.6s;
}

.active, .dot:hover {
    background-color: #fff;
	color: #0d1f3a;
}

/* Animacija prelaza */
.fade {
    animation: fade 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Mobilni meni */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;      /* preko sadržaja */
        top: 60px;            /* odmah ispod navbar-a */
        left: -100%;          /* skriven van ekrana */
        width: 100%;
        height: calc(100% - 60px); /* zauzima ostatak ekrana */
        flex-direction: column;
        background: #0d1f3a;
        padding-top: 20px;
        transition: left 0.3s ease-in-out;
        z-index: 9998;
    }

    .nav-links.active {
        left: 0;             /* prikazan preko sadržaja */
    }

    .nav-links li {
        margin: 1px 0;
        text-align: center;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5em;
        cursor: pointer;
    }
}
