/* Global */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

/* Navigation */
nav {
    background: #343a40;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #1abc9c;
}

/* Dropdown */
nav ul li ul.dropdown-menu {
    display: none;
    position: absolute;
    background: #343a40;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 0;
    min-width: 150px;
    z-index: 1000;
    border: 1px solid #1abc9c;
}

nav ul li:hover ul.dropdown-menu {
    display: block;
}

nav ul li ul.dropdown-menu li a {
    display: block;
    padding: 10px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    nav ul li ul.dropdown-menu {
        position: static;
        border: none;
    }
}

/* ---------------- */
/* Login Styles */
body.login-body {
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background: #1e1e2f;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 400px;
    text-align: center;
    color: #fff;
}

.login-container h2 {
    margin-bottom: 1.5rem;
    font-weight: normal;
    font-size: 1.6rem;
}

.login-container input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: #2d2d3a;
    color: white;
}

.login-container input:focus {
    outline: none;
    background: #3a3a4a;
}

.login-container button {
    background-color: #1abc9c;
    color: white;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.login-container button:hover {
    background-color: #16a085;
}

.error {
    background: #c0392b;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}
