/* BODY */
body {
    background-color: #141414;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: white;
}

/* HEADER */
header {
    background: linear-gradient(to right, #000000, #1a1a1a);
    padding: 20px;
    height: 200px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    color: white;
    text-shadow: 2px 2px 10px black;

    border-bottom: 3px solid #e50914;
}

/* NAVIGACIJA */


nav {
    background-color: #0f0f0f;
    overflow: hidden;
}

nav a {
    float: left;
    display: block;

    color: white;
    text-align: center;

    padding: 14px 16px;
    text-decoration: none;

    transition: 0.3s;
}

nav a:hover {
    background-color: #e50914;
    color: white;
    border-radius: 5px;
}

nav.navbar {
    position: sticky;
    top: 0;
    z-index: 9999;

    width: 100%;

    background-color: #111111;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;

    padding: 5px 0;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);

    border-bottom: 2px solid #e50914;
}

/* PRETRAŽIVANJE*/
.search-box {
    position: relative;
    display: inline-block;
}

.search-box input {
    padding-left: 40px;
}

.search-box .icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}



/* HAMBURGER */
.menu-toggle {
    display: none;

    color: white;
    font-size: 28px;

    padding: 10px 15px;

    cursor: pointer;
}

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

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;

        width: 100%;

        gap: 10px;

        padding-bottom: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 90%;
        text-align: center;
    }

    .search-box {
        width: 90%;
    }

    .search-box input {
        width: 100%;
    }
}



/* TEKST / KARTICE */
.odlomak {
    background: linear-gradient(145deg, #1f1f1f, #262626);

    padding: 25px;
    border-radius: 20px;

    margin-bottom: 30px;

    border: 1px solid #2f2f2f;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}



.odlomak h1 {
    color: #e50914;
}



/* BUTTONI */
button {
    background-color: #2a2a2a;

    color: white;
    border: none;

    padding: 10px 20px;
    margin: 5px;

    border-radius: 10px;

    transition: 0.3s;
}

button:hover {
    background-color: #ff2d373a;
    transform: scale(1.05);
    border-radius: 20px;
}

/* FORM */
input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #e50914;
}

.dodavanje {
    margin: 30px;
    padding: 20px;

    background-color: #1f1f1f;

    border-radius: 15px;

    border: 1px solid #2d2d2d;
}

/* INPUTI */
input[type="text"],
select {
    background-color: #2a2a2a;
    color: white;

    border: 1px solid #444;

    padding: 10px;
    border-radius: 10px;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #e50914;
}

/* FILMOVI */

label {
    all: unset;
    display: block;
    cursor: pointer;
}


.film-item {
    background-color: #2a2a2a;

    padding: 8px;
    margin-bottom: 6px;

    border-radius: 7px;

    transition: 0.3s;

    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px;

}


.film-item input {
    margin-right: 10px;
}

.film-label {
    display: block;

    background-color: #2a2a2a;
    padding: 10px;
    border-radius: 8px;

    cursor: pointer;

    transition: 0.3s;
}

.film-label:hover {
    background-color: #383838;
}



#rezultatFilma {
    margin-top: 20px;
    padding: 15px;

    background-color: #ffffff;
    color: #111;

    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#rezultatFilma h3,
#rezultatFilma h4 {
    color: #e50914;
}

#rezultatFilma ul {
    padding-left: 20px;
}

#rezultatFilma li {
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

#statistika,
#statistika * {
    color: white;
}

/* FAVORIT*/
.film-item.favorite {
   border-left: 6px solid rgb(255, 0, 0);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    transition: 0.3s;
}

@keyframes pulseFav {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.film-item.favorite {
    animation: pulseFav 0.3s ease;
}
.film-item.favorite {
   
    border-left: 6px solid rgb(255, 0, 0) !important;
    color: white;
}
.fav{
    color: white;
}
.h3{
    color: red;
}

