body {
    background: white;
    font-family: "Playfair Display", serif !important;
    margin: 0;
    padding-bottom: 100px;
}

.nav-links ul {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #2d3a4b;
    width: 100%;
    z-index: 2;
    height: 56px;
}

.nav-links li {
    flex: 0 1 auto;
    font-size: clamp(0.7em, 2vw, 1.2em); /* Responsive size */
    font-weight: 600;
    width: 10%;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff; 
    height: 100%;
    width: 100%;
    padding: 0 16px;
    text-decoration: none;
    transition: background 0.3s, padding 0.3s;
    box-sizing: border-box;
}

.nav-links li a:hover,
#current a {
    background: #4CAF50; /* Green */
    color: #2d3a4b;
    font-weight: 700;
}

@media (max-width: 900px) {
    .nav-links ul {
        height: 48px;
    }
    .nav-links li {
        font-size: clamp(0.6em, 2.5vw, 1em);
    }
    .nav-links li a {
        padding: 0 12px;
    }
}
@media (max-width: 600px) {
    .nav-links ul {
        height: 40px;
    }
    .nav-links li {
        font-size: clamp(0.5em, 3vw, 0.9em);
    }
    .nav-links li a {
        padding: 0 8px;
    }
}
@media (max-width: 400px) {
    .nav-links ul {
        height: 34px;
    }
    .nav-links li {
        font-size: clamp(0.45em, 4vw, 0.8em);
    }
    .nav-links li a {
        padding: 0 4px;
    }
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    font-family: "Playfair Display", serif !important;
    font-size: 1em;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.title{
    text-align: center;
    color: #2d3a4b;
    background: #f1f1f1;
    font-size: 2em;
    font-weight: 600;
    padding-top: 100px;
}

#profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
}

#profile-avatar {
    display: inline-block;
    width: 36px;
    height: 36px;
    image-rendering: auto; /* or high-quality if needed */
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
}

#profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dropbtn {
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    text-align: left;
}

.dropdown-content a,
.dropdown-content button {
    color: black;
    /* padding: 12px 16px; */
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    font-weight: 200;
    font-size: 1em;
}

.dropdown-content a:hover,
.dropdown-content button:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.dropdown:hover .dropbtn {
    background-color: #3e8e41;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    color: inherit;
    font-weight: bold;
}

main p {
    text-align: left;
    margin-left: 20px;
    font-size: 1em;
    color: #333;
    line-height: 1;
}

button {
    background-color: white; /* Blue-ish dark */
    color: black;
    font-family: "Playfair Display", serif;
    outline: none;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

button:hover {
    background-color: #f1f1f1; /* Lighter shade */
    color: #2d3a4b; /* Darker text */
}

.error {
    color: #e74c3c;
    background: #fdecea;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 18px;
    font-size: 1em;
}

.message {
    color: #155724;
    width: 60%;
    align-items: center;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
    margin: 20px;
    font-size: 1em;
}

footer {
    text-align: center;
    font-size: 0.9em;
    padding: 5px;
    background-color: #f1f1f1;
    position: fixed;
    width: 100%;
    bottom: 0;
}

footer a {
    color: #2d3a4b;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}