.coach-group-manager {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 10px;
    font-family: 'Segoe UI', sans-serif;
    color: #000;
}

.coach-group-manager h3, 
.coach-group-manager h4 {
    color: rgba(230, 57, 70, 0.9);
    margin-bottom: 12px;
}

#new-group-name {
    width: calc(100% - 130px);
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

#create-group-btn {
    padding: 10px 20px;
    background-color: rgba(230, 57, 70, 0.9);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 10px;
    
}

#create-group-btn:hover {
    transform: scale(1.05);
    background-color: rgba(230, 57, 70, 1);

    
}

#group-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

#group-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-left: 5px solid rgba(230, 57, 70, 0.8);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#group-list li span {
    flex-grow: 1;
    font-weight: bold;
}

#group-list button {
    margin-left: 10px;
    padding: 6px 12px;
    background-color: rgba(0,0,0,0.8);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#group-list button:hover {
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 1);
}

.group-create-section {
    display: flex;
    margin: 10px;
    margin-bottom: 20px;
}

.group-create-section input {
    flex: 1;
    padding: 8px;
    font-size: 16px;
}

.group-create-section button {
    padding: 8px 12px;
    background-color: #e63946;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.group-list-section ul {
    list-style-type: none;
    padding-left: 0;
}

.group-list-section li {
    padding: 10px;
    background-color: #f7f7f7;
    margin-bottom: 5px;
    cursor: pointer;
    border-left: 5px solid #e63946;
    transition: background 0.2s ease;
}

.group-list-section li:hover {
    background-color: #ececec;
}

#group-editor {
    margin-top: 20px;
    padding: 15px;
    background: #f1f1f1;
    border-radius: 8px;
    display: none;
}

#group-editor ul {
    list-style-type: disc;
    padding-left: 20px;
}

#group-editor.hidden {
    display: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

#player-checkboxes {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 15px;
    margin-bottom: 15px;
}

#player-checkboxes label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    margin: 10px;
}

.modal-buttons button {
    padding: 10px 18px;
    border: none;
    background-color: rgba(230, 57, 70, 0.9);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-buttons button:hover {
    transform: scale(1.05);
    background-color: rgba(230, 57, 70, 1);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

.modal.hidden {
    display: none;
}


#view-member-list {
  text-align: left;
  margin: 15px 0;
}

#view-member-list li {
  padding: 5px 0;
  border-bottom: 1px solid #ddd;
}

#player-checkboxes label {
    display: block;
    margin: 8px 0;
    font-size: 14px;
    cursor: pointer;
}

#player-checkboxes input {
    margin-right: 8px;
}
