/* General Styles from index.php */
* {
    box-sizing: border-box;
}
body {
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    background-color: #1a1a1a; /* Dark background */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    color: #e0e0e0; /* Light grey text */
}
header {
    background-color: #222222; /* Dark grey header */
    color: #ffffff; /* White text */
    padding: 15px 20px;
    width: 100%;
    text-align: center;
    box-shadow: none; /* No shadow */
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
}
.container {
    background-color: #282828; /* Slightly lighter dark grey container */
    border-radius: 0px; /* Sharp corners */
    box-shadow: none; /* No shadow */
    padding: 25px;
    width: 95%;
    max-width: 400px; /* Smaller width for login/register */
    border: 1px solid #333333; /* Subtle dark border */
}

/* Form Specific Styles */
.form-wrapper {
    width: 100%;
}
.form-wrapper h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #999999;
    font-size: 0.9em;
}
.form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #444444;
    border-radius: 3px;
    font-size: 1em;
    background-color: #1e1e1e;
    color: #e0e0e0;
    box-shadow: none;
}
.btn {
    width: 100%;
    padding: 10px 20px;
    background-color: #444444;
    color: #ffffff;
    border: 1px solid #555555;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
}
.btn:hover {
    background-color: #555555;
}
.form-footer {
    text-align: center;
    margin-top: 20px;
}
.form-footer a {
    color: #77aaff;
    text-decoration: none;
}
.form-footer a:hover {
    text-decoration: underline;
}
.error-message {
    color: #ff6b6b; /* Light red for errors */
    background-color: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    padding: 10px;
    border-radius: 3px;
    text-align: center;
    margin-top: 20px;
}

footer {
    margin-top: 20px;
    padding: 10px;
    color: #888888;
    font-size: 0.8em;
    text-align: center;
    width: 100%;
    text-shadow: none;
}

.online-users-display {
    background-color: #333333;
    color: #ffffff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 3px;
    text-align: center;
    font-weight: bold;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
}

.modal-content {
    background-color: #282828;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #333;
    width: 80%; /* Could be more responsive */
    max-width: 500px;
    border-radius: 5px;
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

ul#online-users-modal-list {
    list-style-type: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #444;
    padding: 10px;
    background-color: #1e1e1e;
}

ul#online-users-modal-list li {
    padding: 5px 0;
    border-bottom: 1px solid #333;
}

ul#online-users-modal-list li:last-child {
    border-bottom: none;
}

.delete-message-btn {
    background: none; /* No background */
    color: #888; /* Softer grey text */
    border: none;
    padding: 0; /* No padding */
    font-size: 0.7em;
    cursor: pointer;
    position: absolute; /* Position absolutely within the relative parent */
    top: 5px; /* Adjust as needed */
    right: 5px; /* Adjust as needed */
    z-index: 10; /* Ensure it's above message content */
}

.delete-message-btn:hover {
    color: #aaa; /* Slightly lighter on hover */
    text-decoration: underline; /* Underline on hover */
}

.deleted-message {
    font-style: italic;
    color: #888; /* Grey out deleted messages */
}

.message-sender.admin-sender {
    color: gold; /* Warna emas untuk admin */
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5); /* Efek glow */
}

.message-sender.ceo-sender {
    color: #ff0000; /* Merah menyala untuk CEO */
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.7); /* Efek glow merah */
}

.save-role-btn {
    background-color: #28a745; /* Green color */
    color: white;
}

.save-role-btn:hover {
    background-color: #218838; /* Darker green on hover */
}

.role-select {
    padding: 5px 30px 5px 10px; /* Increased right padding */
    border: 1px solid #444444;
    border-radius: 3px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    font-size: 1em;
    cursor: pointer;
    appearance: none; /* Remove default browser styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23e0e0e0%22%20d%3D%22M287%2C197.3L159.3%2C69.7c-3.2-3.2-8.3-3.2-11.6%2C0L5.4%2C197.3c-3.2%2C3.2-3.2%2C8.3%2C0%2C11.6l11.6%2C11.6c3.2%2C3.2%2C8.3%2C3.2%2C11.6%2C0l120.7-120.7l120.7%2C120.7c3.2%2C3.2%2C8.3%2C3.2%2C11.6%2C0l11.6-11.6C290.2%2C205.6%2C290.2%2C200.5%2C287%2C197.3z%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 10px center; /* Adjusted position */
    background-size: 12px;
}

.role-select:focus {
    border-color: #77aaff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(119, 170, 255, 0.5);
}