/* General Styles */
body {
    background-color: #e5e5e5;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Electrolize', Verdana, Arial, serif;
    position: relative;
    overflow-x: hidden;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: white;
    margin-bottom: 10px;
    color: black;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-content {
    display: flex;
    align-items: center;
    width: 100%;
}
.header-logo {
    height: 50px;
    margin-right: 20px;
}
.top-nav {
    display: flex;
    gap: 20px;
    flex-grow: 1;
}
.top-nav a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 10px;
}
.top-nav a:hover {
    color: #990000;
}
.login {
    margin-left: auto;
    padding: 10px;
    font-weight: bold;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    padding: 10px;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    top: 100%;
    left: 0;
    border-radius: 5px;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-content a {
    display: block;
    padding: 8px 12px;
    color: black;
    text-decoration: none;
}
.dropdown-content a:hover {
    background-color: #f0f0f0;
}

/* Main Content */
#main-content {
    flex: 1;
    padding: 10px 10px;
    max-width: 1700px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 60px; /* Add space for footer */
    overflow-y: visible;
    position: relative;
    z-index: 1;
}

/* Footer */
.site-footer {
    background: #1e1e1e;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 99;
    height: 40px; /* Fixed height for footer */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure content doesn't get hidden behind footer */
body::after {
    content: '';
    display: block;
    height: 40px; /* Same as footer height */
}

/* Login Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #222;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    color: white;
    position: relative;
}

.modal h2 {
    margin-top: 0;
    color: white;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: white;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #333;
    color: white;
    box-sizing: border-box;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.modal-button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.login-btn {
    background-color: #1976d2;
    color: white;
}

.cancel-btn {
    background-color: #666;
    color: white;
}

.error-message {
    color: #ff6b6b;
    margin-top: 10px;
    text-align: center;
    display: none;
}

/* User Section Styles */
.user-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    cursor: pointer;
    position: relative;
}

.user-info:hover::after {
    content: 'Click to logout';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.username {
    color: darkred;
    text-decoration: none;
    font-weight: bold;
}

/* Hover effect for the user info section */
.user-info:hover {
    opacity: 0.8;
}
