/* Service bar */
.service-bar {
    background-color: #293446; /* Boja bara */
    padding: 5px 0;
    height: 35px;
    display: flex; /* Make sure links align properly */
    flex-wrap: nowrap; /* Prevent wrapping of service links */


}

.service-bar .service-link {
    color: white;
    margin-left: 10px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 9px; /* Default font size */
    position: relative; /* Pozicioniranje radi strelice */
    top: 7px;
    z-index: 100;
    white-space: nowrap; /* Prevent text from wrapping */
}

.service-bar .service-link:hover {
    color: #f4691d;
    text-decoration: none; /* Uklanjanje podvlačenja */
}

/* Strelica prema dolje */
.service-link .fa-caret-down {
    margin-left: 5px;
    font-size: 12px;
}

/* Ikonica prije "Login" */
.service-link .fa-user {
    margin-right: 5px;
    font-size: 12px;
}

.navbar-nav .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    background: none;
    border: none;
}

/* Media queries for mobile responsiveness */
@media (max-width: 600px) {
    .service-bar .service-link {
        font-size: 8px; /* Smaller font size for mobile */
        top: 5px; /* Adjust position if necessary */
    }
}

/* Dialog */
.dialog {
    width: 400px; /* Default width for login dialog */
    min-height: 495px; /* Default height for login dialog */
    margin: -247.5px 0 0 -200px; /* Adjust for centering */
    background: #ffffff;
    border: 1px solid #ffffff;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 110;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    display: none; /* Initially hidden */
}

/* Dialog for register */
.dialog.register {
    width: 600px; /* Specific width for register dialog */
    min-height: 540px; /* Specific height for register dialog */
    margin: -270px 0 0 -300px; /* Adjust for centering */
}

/* Input fields styling for login */
.authForm input[type="email"],
.authForm input[type="password"] {
    width: 100%; /* Adjust width to fit container */
    padding: 10px 10px 10px 30px; /* Add left padding for icons */
    margin: 10px 0;
    border: 1px solid #ddd; /* Light gray border */
    border-radius: 2px;
    background-color: rgba(232, 240, 254, 0.9); /* Light background */
    color: fieldtext !important;
    position: relative; /* Ensure absolute positioning for icons */
    outline: none; /* Remove black outline on focus */
}

/* Remove border on focus */
.authForm input[type="email"]:focus,
.authForm input[type="password"]:focus {
    border: 1px solid #aaa; /* Change border color on focus */
    outline: none; /* Ensure no black outline on focus */
}

/* Position icons inside input fields */
.authForm input[type="email"]::before,
.authForm input[type="password"]::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: contain;
}

.authForm input[type="email"]::before {
    background-image: url('path-to-email-icon.png'); /* Replace with actual icon path */
}

.authForm input[type="password"]::before {
    background-image: url('path-to-password-icon.png'); /* Replace with actual icon path */
}

.dialog .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    background: none;
    border: none;
    outline: none;
}



/* Spacing between logo and text */
.dialog-header img {
    margin-bottom: 80px; /* Adjust this value for desired spacing */
}

/* Horizontal line styling */
.authForm hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 15px 0;
}

/* Footer styling */
.dialog-footer {
    background-color: #f9f9f9; /* Light gray background */
    padding: 10px 0;
    font-family: 'Ubuntu', sans-serif;
    font-size: 9px;
    font-weight: 500;
    color: #b1b1b1;
    line-height: 11px;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9;
    display: none; /* Initially hidden */
}

/* Additional dialog styles */
.dialog-content {
    padding: 20px;
}

.dialog-header {
    text-align: center;
}

.dialog-logo {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.dialog-body {
    text-align: center;
}

.dialog-body p {
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.authForm {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.authForm input[type="submit"] {
    min-width: 340px;
    background: #f4691d;
    border: none;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    padding: 18px 0;
    margin: 25px 0 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

/* Footer */
.dialog-footer p {
    margin: 0px;
}



/* User avatar container */
.user-avatar-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

/* Square container with circle image inside */
.user-avatar {
    width: 26px;
    height: 26px;
    border: 1px solid #f4691d; /* Border around the avatar */
    overflow: hidden;
    margin-right: 10px;
    margin-top: 0; /* Move avatar up */
}

/* Image inside the avatar */
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the container */
    display: block;
    
}

/* Styling for the username */
.user-name {
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.btn-custom-small {
    font-size: 12px;
    padding: 2px 10px;
    height: auto;
    line-height: 1;
    border-radius: 4px; /* Optional: to make the button corners slightly rounded */
}

/* Apply consistent styles to all input fields */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="submit"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px; /* Ensure the text looks uniform */
}

/* Optional: Style for the submit button */
input[type="submit"] {
    background-color: #f4691d;
    color: white;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #d85c1b;
}


/* User Menu Dropdown */
.user-menu .dropdown-menu {
    background-color: #ffffff; /* Bijela pozadina za razliku od navbar dropdown-a */
    border: 1px solid #ccc; /* Svjetlija ivica */
    padding: 10px;
    width: 150px; /* Manja širina */
    top: 30px;
    right: 0; /* Poravnaj desno */
    left: auto; /* Osiguraj da nije lijevo poravnanje */
}

.user-menu .dropdown-item {
    background: #ffffff; /* Bijela pozadina */
    border-bottom: none; /* Ukloni linije između stavki */
    color: #2e2f34 !important; /* Tamna boja teksta */
    padding: 10px;
    font-size: 12px; /* Malo veći font za user meni */
}

.user-menu .dropdown-item:hover {
    background-color: #f4691d; /* Orange hover efekat */
    color: white !important; /* Bijela boja teksta na hover */
}

.user-menu .dropdown-item a {
    color: #2e2f34 !important; /* Tamna boja linka */
    text-decoration: none;
}

.user-menu .dropdown-item a:hover {
    color: white !important; /* Bijela boja linka na hover */
}

/* Stil dugmeta za korisnički meni */
.btn-custom-small {
    background-color: #f4691d;
    border: none;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 20px;
}

.btn-custom-small:hover {
    background-color: #e65710; /* Tamnija nijansa na hover */
    color: white;
}

