/* General Chat Window Styles */
#chat_window {
    height: 45rem;
    display: flex;
    flex-direction: column;
    background-color: #1f2937; /* Tailwind gray-800 */
    border-radius: 1rem;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    padding: 1rem;
    position: relative;
}

/* Online Users Section */
#online-status {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #34d399; /* Tailwind emerald-400 */
    background-color: #1f2937;
    padding: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Chat Messages Container */
#chat_container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* Chat Input Form */
#chat_input_form {
    display: flex;
    align-items: center;
    background-color: #1f2937;
    padding: 0.5rem;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* Smooth fade-in for new messages */
@keyframes fadeInAndUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0px); }
}
.fade-in-up {
    animation: fadeInAndUp 0.6s ease;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2, h3 {
    color: #333;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
}

th, td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th {
    background: #007bff;
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background: #f2f2f2;
}

tr:hover {
    background: #ddd;
}

button {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    color: white;
    transition: 0.3s;
}

button:hover {
    opacity: 0.8;
}

button.enable {
    background-color: #28a745;
}

button.disable {
    background-color: #dc3545;
}
.unavailable{
    color: white;
    background-color: rgba(255,0,0,0.6);
    text-decoration: line-through;
    /*opacity: 0.8;*/
}
.disabled-btn{
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    background-color: gray !important;
}
  label {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color: #333; /* Ensure visibility */
    margin-bottom: 5px; /* Adds space between label and input */
}
  input, select, textarea {
    width: 30%; /* Makes inputs stretch properly */
    padding: 8px;
    border: 2px solid #ccc; /* Adds a visible border */
    border-radius: 5px; /* Smooths edges */
    font-size: 1rem;
    background-color: white; /* Ensures visibility */
    color: #333; /* Dark text for readability */
}

input:focus, select:focus, textarea:focus {
    border-color: #007bff; /* Highlight color on focus */
    outline: none; /* Removes default outline */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
input[type="checkbox"] {
    width: 18px; /* Adjust size */
    height: 18px;
    accent-color: #007bff; /* Modern browsers support this for styling */
    cursor: pointer;
}

input[type="checkbox"]:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}