.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0d141f;
    padding: 1rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(0, 136, 255, 0.2);
}

.nav-left h2 {
    font-size: 1.4rem;
    color: #00aaff;
}

.nav-right {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.nav-btn.signup {
    background-color: #007bff;
    color: white;
}

.nav-btn.logout {
    background-color: #ff4444;
    color: white;
}

.nav-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Body */
body {
    background: #0b0f17;
    color: #ffffff;
    padding: 2rem;
}

.messages {
    margin-bottom: 1rem;
}

.message-popup {
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.6s ease-in-out;
}

.message-popup.error {
    background-color: #ff4d4d;
    color: white;
}

.message-popup.success {
    background-color: #4CAF50;
    color: white;
}


.footer {
    background-color: #11151d;
    color: white;
    padding: 2rem 1rem 1rem;
    margin-top: 4rem;
    font-size: 0.95rem;
    animation: fadeSlide 0.6s ease-in-out;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-left h3 {
    color: #00aaff;
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.footer-left p {
    color: #ccc;
    max-width: 300px;
}

.footer-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #00aaff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    color: #888;
    font-size: 0.85rem;
    border-top: 1px solid #222;
    padding-top: 1rem;
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        width: 100%;
    }
}