﻿.groups-container {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    flex-direction: row;
}

.groups-left-column {
    max-width: 300px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.groups-student-panel {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    flex-grow: 1;
    overflow-y: auto;
}

.groups-right-column {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Réserve l'espace du bouton 'Ajouter' même hors mode édition */
.groups-add-host {
    height: 60px;
    display: flex;
    align-items: center;
}

.groups-add-box {
    height: 60px;
}

.groups-add-box--hidden {
    visibility: hidden;
    pointer-events: none;
}


.groups-activity-list {
    width: 100%;
}

.groups-grid {
    column-width: 260px;
    column-gap: 1rem;
    margin: 0 auto;
    align-items: start;
}


.groups-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    background-color: #fff;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.groups-loading {
    padding: 2rem;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* --------- Liste des élèves --------- */
.groups-student-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
}

.groups-student-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(var(--primary-color-rgb), 0.05);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
    cursor: grab;
    transition: background-color 0.2s ease;
}

    .groups-student-item:hover {
        background-color: rgba(var(--primary-color-rgb), 0.1);
    }

.groups-student-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.groups-student-drag-icon {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.groups-student-name-container {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.groups-student-name-label {
    font-size: 0.7rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/*



*/


.groups-label {
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.4em;
}

.groups-title {
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    max-height: 2.4em;
}

.groups-header {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .groups-header span {
        font-size: 1.5rem;
        font-weight: bold;
    }

    .groups-header small {
        font-size: 0.85rem;
        color: #f0f0f0;
    }

.groups-add-box{
    background-color: #e0ecf8;
    border-left: 4px solid var(--primary-color);
}

.groups-tag-count {
    background-color: var(--secondary-color); /* ou autre, différent du compteur interne */
    color: white;
    padding: 0.2rem 0.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.groups-student-count {
    background-color: var(--primary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.groups-body {
    flex-grow: 1;
    background-color: rgba(0, 128, 128, 0.3);
    padding: 0.75rem;
    overflow-y: auto;
    border-top: 1px solid #eee;
}

.groups-edit-toggle-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

    .groups-edit-toggle-button:hover {
        filter: brightness(1.2);
    }

    .groups-edit-toggle-button:focus {
        background-color: rgba(var(--secondary-color-rgb), 0.8) !important;
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
    }

.groups-box {
    background-color: white;
    border: 2px solid var(--primary-color);
    border-left: 6px solid var(--secondary-color);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
    overflow: hidden;
}

    .groups-box > .slot-header-separator {
        height: 1px;
        background-color: #cbd5e1;
        margin: 8px 0 12px 0;
    }

    .groups-box:nth-child(even) {
        background-color: #e6f7e6;
    }

    .groups-box:nth-child(odd) {
        background-color: #fffbe6;
    }

.groups-slot-form {
    background-color: #f0f4fa;
    border-top: 2px dashed var(--primary-color);
    padding: 1rem;
    bottom: 0;
    z-index: 5;
}

.groups-assigned-student-pill {
    background-color: rgba(var(--primary-color-rgb), 0.05);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: grab;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

    .groups-assigned-student-pill:hover {
        background-color: rgba(var(--primary-color-rgb), 0.1);
    }

.groups-remove-assignment-button {
    background: transparent;
    border: none;
    color: var(--important-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0 0 0.5rem;
    display: flex;
    align-items: center;
}

    .groups-remove-assignment-button:hover {
        filter: brightness(1.2);
    }

.groups-assigned-student-name-container {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.groups-assignement-student-name {
    font-size: 0.9rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.groups-scroll-content {
    height: 100%;
    overflow-y: auto;
}