/* ============================================
   BASIC STYLES
   ============================================ */
body{
    background-color: rgb(2, 59, 40);
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
}

header{
    background-color: rgb(3, 78, 53);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 !important;
    position: relative;
}

#main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative; 
}

/* Header top - container za hamburger i logo */
.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.logo{
    width: 400px;
    height: auto;
    margin: 1rem auto;
    display: block;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.flag-icon {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.flag-icon:hover {
    transform: scale(1.1);
}

/* ============================================
   LOGIN LINK
   ============================================ */
.login-link {
    position: absolute;
    top: 50px; /* Ispod language switchera */
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.login-link a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-link a:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ============================================
   NAVIGATION - DESKTOP
   ============================================ */
.main-nav {
    width: 100%;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0 0 20px 0;
    flex-wrap: wrap;
}

.nav-list li {
    display: inline-block;
}

.nav-list a {
    display: block;
    padding: 10px 20px;
    color: white;
    background-color: rgb(2, 59, 40);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.nav-list a:hover {
    background-color: rgb(3, 78, 53);
}

.nav-list a.active {
    background-color: rgb(3, 78, 53);
    font-weight: bold;
}

/* ============================================
   HAMBURGER BUTTON - Sakriven na desktopu
   ============================================ */
.mobile-menu-btn {
    display: none;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: white;
    display: block;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Hamburger → X animacija */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* ============================================
   USER FORMS
   ============================================ */
.user-menue {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.user-menue .col-12 {
    max-width: 450px;
}

.user-menue form {
    background-color: rgb(13, 71, 52);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.user-menue fieldset {
    border-color: #dee2e6 !important;
    background-color: white;
}

.user-menue legend {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    padding: 0 15px;
}

.user-menue .form-control {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ced4da;
}

.user-menue .sub-send {
    width: 100%;
    padding: 12px;
    background-color: rgb(3, 78, 53);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.user-menue .sub-send:hover {
    background-color: rgb(2, 59, 40);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 991px) {
    .logo {
        width: 300px;
    }
    
    .nav-list a {
        font-size: 1rem;
        padding: 8px 15px;
    }
}

/* ============================================
   RESPONSIVE - MOBITEL
   ============================================ */
@media (max-width: 767px) {
    /* Logo manji */
    .logo {
        width: 200px;
        margin: 1rem auto;
    }
    
    /* Language switcher */
    .language-switcher {
        top: 10px;
        right: 10px;
        gap: 5px;
    }
    
    .flag-icon {
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }
    
    /* Prikaži hamburger LIJEVO od loga */
    .mobile-menu-btn {
        display: flex !important;
        left: 15px;
    }
    
    /* Navigation - sakrivena */
    .main-nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background-color: rgb(3, 78, 53);
        border-radius: 10px;
        width: 90%;
        margin: 0 auto;
    }
    
    .main-nav.open {
        max-height: 500px;
        padding: 15px 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 10px;
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-list a {
        width: 100%;
        text-align: center;
        padding: 15px;
        font-size: 1rem;
        border-radius: 8px;
        margin: 3px 0;
    }
    
    /* Login link - ostaje desno gore */
    .login-link {
        top: 40px; /* Malo bliže na mobitelu */
        right: 5px;
        flex-direction: column;
        gap: 5px;
    }
    
    .login-link a {
        font-size: 0.75rem;
        padding: 10px 10px;
    }
    
    /* Forms */
    .user-menue {
        padding: 20px 0;
        min-height: auto;
    }
    
    .user-menue .col-12 {
        padding: 0 15px;
    }
    
    .user-menue form {
        padding: 20px;
    }
}