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



.login-container {
    width: 300px;
    margin: 100px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.error-message {
    color: red;
    margin-top: 10px;
}

.header {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    margin: 0;
    font-size: 24px;
}

.header button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.header button:hover {
    background-color: #c82333;
}

.container {
    display: flex;
    min-height: calc(100vh - 60px); /* Adjust based on header height */
}

.sidebar {
    width: 200px;
    background-color: #222;
    color: white;
    padding: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 4px;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: #007bff;
}

.content {
    flex-grow: 1;
    padding: 20px;
    background-color: #fff;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

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

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

table th {
    background-color: #f2f2f2;
}

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

table tr:hover {
    background-color: #f1f1f1;
}

.action-buttons button {
    margin-right: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.edit-button {
    background-color: #ffc107;
    color: #333;
}

.delete-button {
    background-color: #dc3545;
    color: white;
}

max-height: 400px; /* Or any other max-height */
    overflow-y: auto; /* Add scrollbars if content overflows */
}

.summary-content {
    max-width: 300px; /* Adjust width as needed */
    word-wrap: break-word;
    white-space: pre-wrap; /* Respects whitespace and newlines */
}

.modal {
    display: none; 
    position: fixed;
    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.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

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

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

.modal-content .form-group input {
    width: calc(100% - 22px); /* Adjust for padding and border */
}

.modal-content button[type="submit"] {
    margin-top: 20px;
}

#groupId[readonly],
#groupName[readonly] {
    border: none;
    background-color: transparent;
    padding-left: 0;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-container input[type="text"] {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-container button {
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-container button:hover {
    background-color: #0056b3;
}

/* Notification Styles */
.error-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #dc3545;
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 1000;
}

.toast {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 15px;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s, display 0.5s;
}

.toast.show {
    display: block;
    opacity: 1;
}



.horizontal-search {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: start;
}

.two-column-search {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: start;
}

.search-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-group .input-with-clear {
    flex-grow: 1;
}

.search-group .input-with-clear input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

#summaryModal .modal-content {
    max-width: 70%;
}

#summaryModalContent {
    max-height: 60vh;
    overflow-y: auto;
    text-align: left;
}

#summaryModalContent h4 {
    margin-top: 15px;
    margin-bottom: 5px;
    color: #007bff;
}

#summaryModalContent ul {
    padding-left: 20px;
}

#summaryModalContent li {
    margin-bottom: 8px;
}
