body {
    margin: 0;
    min-height: 100vh;
    background-image: url("team_photo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
}

/* Navbar */
.navbar {
    font-size: 16px;
    background-color: #1e3a8a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand {
    color: #fbbf24;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 1rem 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 1rem 0;
}

.nav-link:hover {
    color: #fbbf24;
}

.nav-link.active {
    color: #fbbf24;
    border-bottom: 3px solid #fbbf24;
}

.nav-profile {
    color: white;
    text-decoration: none;
    padding: 0.4rem 1rem;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.nav-profile:hover,
.nav-profile.active {
    background-color: #fbbf24;
    color: #1e3a8a;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile Card */
.profile-card {
    background: white;
    padding: 40px;
    width: 520px;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    border-top: 5px solid #fbbf24;
}

.profile-card h2 {
    text-align: center;
    margin-bottom: 28px;
    color: #1e3a8a;
    font-size: 24px;
    font-weight: 700;
}

/* Profile Row */
.profile-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 10px;
}

.profile-field label {
    width: 110px;
    font-weight: 600;
    color: #1e3a8a;
    flex-shrink: 0;
}

.profile-field span {
    flex: 1;
    color: #333;
}

.profile-field input {
    flex: 1;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    display: none;
}

.profile-field input:focus {
    outline: none;
    border-color: #fbbf24;
}

/* Edit Button */
.edit-btn {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.edit-btn:hover {
    background: #1e40af;
}

/* Status Message */
#profile-msg {
    text-align: center;
    font-size: 14px;
    color: #475569;
    min-height: 20px;
    margin-top: 8px;
}

/* Save Button */
.save-btn {
    width: 100%;
    margin-top: 20px;
    padding: 0.75rem;
    background-color: #1e3a8a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: none;
}

.save-btn:hover {
    background-color: #1e40af;
}

/* Sign Out Button */
.signout-btn {
    width: 100%;
    margin-top: 12px;
    padding: 0.75rem;
    background-color: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
}

.signout-btn:hover {
    background-color: #ef4444;
    color: white;
}

.hamburger {
    display: none;
    border: none;
    background: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.desktop-only {
    display: inline-block;
}

.mobile-only {
    display: none;
}

.nav-menu.open {
    display: flex;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        display: none;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 0.75rem 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .profile-card {
        width: min(92vw, 520px);
        padding: 24px;
    }

    .profile-field {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-field label {
        width: 100%;
        margin-bottom: 8px;
    }

    .profile-field input,
    .profile-field span,
    .edit-btn {
        width: 100%;
    }

    .edit-btn {
        margin-top: 8px;
    }
}
