/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    color: #2E3A47;
    background-color: #F5F7FA;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Top Bar Styling */
.top-bar {
    background-color: #2E3A47; /* Dark color for top bar */
    color: #FFFFFF;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.user-info {
    font-weight: bold;
}

/* Unified Button Styles for Top Bar */
.logout-button, .edit-profile-button, a.button {
    background-color: #ff4d4d; /* Red button for consistency */
    color: #FFFFFF;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s;
}

.logout-button:hover, .edit-profile-button:hover, a.button:hover {
    background-color: #e60000; /* Darker red on hover */
}

.edit-profile-button {
    margin-left: 10px; /* Adds spacing between Edit Profile and Logout buttons */
}

/* Header Styles */
header {
    background-color: #2E3A47;
    padding: 20px;
    text-align: center;
}

header img {
    width: 150px;
}

header h1 {
    color: #FFFFFF;
    font-size: 28px;
    margin: 0;
}

/* Navigation Styles */
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: #3E4E5A;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #FFFFFF;
    padding: 10px 15px;
    display: inline-block;
    font-size: 18px;
}

nav ul li a:hover {
    background-color: #5CA8A8;
    border-radius: 5px;
}

/* Footer Styles */
footer {
    background-color: #2E3A47;
    color: #FFFFFF;
    text-align: center;
    padding: 10px 0;
}

footer a {
    color: #5CA8A8;
    text-decoration: none;
}

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

/* Main Content */
main {
    padding: 20px;
}

/* General Button Styles */
button {
    background-color: #5CA8A8;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #489898;
}

/* Job Listings Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #3E4E5A;
    color: white;
}

table tr:nth-child(even) {
    background-color: #F2F2F2;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 22px;
    }
    table, table tr, table th, table td {
        display: block;
        width: 100%;
    }
    table tr {
        margin-bottom: 10px;
    }
    .top-bar {
        flex-direction: column;
        text-align: center;
    }
    .logout-button, .edit-profile-button, a.button {
        margin-top: 5px;
    }
}

/* Intro Section */
#intro {
    text-align: center;
    margin-top: 40px;
}

#intro h2 {
    color: #2E3A47;
    font-size: 36px;
    margin-bottom: 20px;
}

#intro p {
    font-size: 18px;
    color: #5E6D7E;
    margin-bottom: 10px;
}

/* Authentication Section */
#auth {
    text-align: center;
    margin-top: 40px;
}

.auth-buttons {
    margin-top: 20px;
}

.auth-buttons a {
    background-color: #5CA8A8;
    color: #FFFFFF;
    text-decoration: none;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 5px;
}

.auth-buttons a:hover {
    background-color: #489898;
}
