/* General Layout */

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Login Box */
.login-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 350px;
    text-align: center;
}


/* Logo */
.logo {
    background: #333; /* Dark background */
    padding: 10px;
    display: inline-block;
    border-radius: 10px;
}

.logo img {
    width: 80px;
    display: block;
    margin: auto;
}


.logo img {
    width: 80px;
    display: block;
    margin: auto;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Button */


.btn:hover {
    background: #0056b3;
}

/* Footer */
footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

footer a {
    text-decoration: none;
    color: #007bff;
}

footer a:hover {
    text-decoration: underline;
}


body {
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.container {
    padding: 20px;
}

/* Buttons */
.btn,
.toggle-button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-green {
    background: green;
    color: inherit; /* Optional: use default text color */
}

.btn-gray {
    background: #555;
    color: white;
}

.toggle-button {
    background-color: #007bff;
    color: white;
    margin-bottom: 10px;
}

.btn:hover,
.toggle-button:hover {
    opacity: 0.85;
}

/* Table Styling */
.table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
	vertical-align: middle;
    padding: 8px 10px;
    border: 1px solid #ccc;
    text-align: left;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

.table th {
    background: #333;
    color: white;
}

.table tr:nth-child(even) {
    background: #f9f9f9;
}

.table input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Wrapping Utility */
.wrap-cell {
    max-width: 180px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Filter Form */
.filter-row {
    margin: 15px 0;
}

.filter-row select,
.filter-row input {
    padding: 4px;
    margin-right: 10px;
}

/* Add Participant Form */
form.add-form {
    margin-top: 30px;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 6px;
    background: #f4f4f4;
}

form.add-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

form.add-form .form-row > div {
    flex: 1;
}

form.add-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

form.add-form select,
form.add-form input[type="text"] {
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
}

/* Toggleable Form Container */
#add-form-container {
    display: none;
    margin-top: 20px;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 6px;
    background: #f4f4f4;
}

/* Error Display */
.error {
    color: red;
    margin: 10px 0;
}

.btn-open {
    background: transparent;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
.btn-close {
    background: transparent;
    color: red;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

