@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #303030; /* Dark grey background */
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    background-color: #f0f0f0; /* Light grey container to contrast */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 90%;
    text-align: center;
}

header {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

#logo {
    max-width: 150px;
    margin-bottom: 10px;
}

h1 {
    color: #007bff; /* Aperture Blue */
    margin-bottom: 5px;
}

h2 {
    color: #555;
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: 15px;
}

h3 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

button {
    background-color: #ff9900; /* Aperture Orange */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

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

#music-toggle {
    background-color: #007bff;
    margin-top: 10px;
}
#music-toggle:hover {
    background-color: #0056b3;
}
#music-toggle.playing {
     background-color: #dc3545; /* Red when playing */
}
#music-toggle.playing:hover {
     background-color: #c82333;
}

.job-offer {
    text-align: left;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

.job-offer p {
    margin-bottom: 10px;
}

.job-offer small {
    color: #777;
    display: block;
    margin-top: 5px;
}

.chat-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    background-color: #fdfdfd;
}

.chat-area {
    display: flex;
    gap: 20px;
    min-height: 300px;
}

#user-list {
    flex: 1;
    border-right: 1px solid #eee;
    padding-right: 20px;
    text-align: left;
}

#user-list h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #007bff;
}

#user-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 260px;
    overflow-y: auto;
}

#user-list li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px;
    background-color: #f9f9f9;
    border-radius: 3px;
}

#user-list img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

#chat-box {
    flex: 3;
    display: flex;
    flex-direction: column;
}

#messages {
    flex-grow: 1;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    height: 250px;
    overflow-y: auto;
    text-align: left;
    background-color: #fff;
}

.message {
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: #e9ecef;
    word-wrap: break-word;
}

.message .username {
    font-weight: bold;
    margin-right: 5px;
    color: #0056b3;
}

.message.own-message {
    background-color: #d1e7ff; /* Lighter blue for own messages */
}

.message.system-message {
    font-style: italic;
    color: #6c757d;
    background-color: transparent;
    text-align: center;
    padding: 2px 0;
}

.chat-input {
    display: flex;
}

#message-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 1em;
}

#send-button {
    border-radius: 0 4px 4px 0;
}

.job-listings {
    margin-top: 30px;
    text-align: left;
}

.job-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.job-item {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

.job-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #007bff;
}

.job-item p {
    margin-bottom: 15px;
}

.apply-button {
    background-color: #28a745; /* Green for apply button */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.apply-button:hover {
    background-color: #218838;
}

footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    color: #777;
    font-size: 0.9em;
}