/* Global Header and Footer Styles */

header, footer {
    background: #000;
    color: #39ff14;
    padding: 1.5rem 0;
    text-align: center;
}

header {
    border-bottom: 2px solid #39FF14;
    position: relative;
}

footer {
    border-top: 2px solid #39FF14;
    margin-top: 2rem;
}

header nav, footer nav {
    display: inline-block;
}

header nav ul, footer nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    justify-content: center;
}

header nav a,
footer nav a {
    color: #39ff14;
    text-decoration: none;
    margin: 0 1.2rem;
    font-weight: 600;
    transition: color 0.2s;
}

header nav a:hover,
footer nav a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Global logout button in header */
.global-logout-btn {
    background-color: #000;
    color: #39ff14;
    border: 2px solid #39ff14;
    border-radius: 5px;
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    white-space: nowrap;
}

.global-logout-btn:hover {
    background-color: #fff;
    color: #000;
    border-color: #39ff14;
}

.footer-copyright {
    color: #39FF14;
    font-weight: bold;
    display: block;
    text-align: center;
    margin-top: 1rem;
}

/* Container layout for consistent styling */
.layout {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #d3d3d3;
    border: 3px solid #39ff14;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: black;
}
