/**
 * Webisport Dashboard - Groups Section Styles
 * 
 * Group-specific styles only.
 * Shared components are in components.css
 *
 * All values use Vuexy design tokens directly — no override section needed.
 */

/* ================================================
   Groups list — cover / profile thumbnails
   ================================================ */

.webisport-dashboard .group-table-cover {
    width: 72px;
    height: 40px;
    border-radius: var(--ws-radius-sm);
    object-fit: cover;
    display: block;
    background: var(--ws-bg-light);
    box-shadow: var(--ws-shadow-sm);
}

.webisport-dashboard .group-table-cover--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ws-text-muted);
}

.webisport-dashboard .group-table-cover--empty .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.webisport-dashboard .group-table-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--ws-radius-full);
    object-fit: cover;
    display: block;
    background: var(--ws-bg-light);
}

.webisport-dashboard .group-table-avatar--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ws-primary-alpha-16);
    color: var(--ws-primary-ink);
}

.webisport-dashboard .group-table-avatar--empty .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ================================================
   Group Details Modal
   ================================================ */

.webisport-dashboard .webisport-group-details {
    display: flex;
    flex-direction: column;
    gap: var(--ws-space-4);
    background: var(--ws-white);
    border-radius: var(--ws-radius);
}

.webisport-dashboard .webisport-group-details .webisport-detail-row {
    display: flex;
    align-items: baseline;
    gap: var(--ws-space-3);
    padding-bottom: var(--ws-space-3);
    border-bottom: 1px solid rgba(47, 43, 61, 0.08);
}

.webisport-dashboard .webisport-group-details .webisport-detail-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.webisport-dashboard .webisport-group-details .webisport-detail-label {
    min-width: 100px;
    color: var(--ws-text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Detail page: keep tab content flush with shared member-detail layout */
.webisport-dashboard .webisport-member-detail-layout .webisport-tab-content {
    margin: 0;
    padding: 0;
}

.webisport-dashboard .webisport-member-detail-layout .webisport-tab-content > .webisport-card {
    margin-top: 0;
}

/* Group detail tabs */
.webisport-dashboard .group-detail-hint {
    margin: 0 0 var(--ws-space-4) 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #6d6b77;
    max-width: 62ch;
}

.webisport-dashboard .group-detail-table-host {
    min-height: 4rem;
}

.webisport-dashboard .group-detail-empty {
    padding: var(--ws-space-6) var(--ws-space-4);
}

.webisport-dashboard .group-detail-table-host .webisport-user-cell {
    display: flex;
    align-items: center;
    gap: var(--ws-space-3);
}

.webisport-dashboard .group-detail-table-host .webisport-user-cell-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.webisport-dashboard .group-detail-table-host .webisport-user-cell-meta {
    font-size: 0.75rem;
    color: #6d6b77;
}

.webisport-dashboard .group-detail-table-host .group-member-role-select {
    max-width: 16rem;
    min-width: 12rem;
}

.webisport-dashboard .group-detail-table-host td .webisport-badge {
    margin-left: var(--ws-space-2);
    vertical-align: middle;
}

.webisport-dashboard #webisport-group-add-educator-modal .group-detail-hint,
.webisport-dashboard #webisport-group-add-member-modal .group-detail-hint {
    margin-bottom: var(--ws-space-3);
}

/* ================================================
   Group detail sidebar hero (cover + avatar)
   ================================================ */

.webisport-dashboard .webisport-group-sidebar {
    overflow: hidden;
}

.webisport-dashboard .webisport-group-sidebar .group-sidebar-hero {
    background: #fff;
}

.webisport-dashboard .webisport-group-sidebar .group-sidebar-cover-wrap {
    position: relative;
    height: 132px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--ws-primary-rgb, 115, 103, 240), 0.92) 0%, rgba(var(--ws-primary-rgb, 115, 103, 240), 0.55) 100%);
}

.webisport-dashboard .webisport-group-sidebar .group-sidebar-cover-wrap.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.webisport-dashboard .webisport-group-sidebar .group-sidebar-cover-wrap.is-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.72);
}

.webisport-dashboard .webisport-group-sidebar .group-sidebar-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.webisport-dashboard .webisport-group-sidebar .group-sidebar-identity {
    position: relative;
    margin-top: -42px;
    padding: 0 1.25rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(47, 43, 61, 0.08);
}

.webisport-dashboard .webisport-group-sidebar .group-sidebar-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(47, 43, 61, 0.16);
    background: #fff;
}

.webisport-dashboard .webisport-group-sidebar .group-sidebar-avatar-placeholder {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(47, 43, 61, 0.16);
    background: #f3f2f3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #97959e;
    font-size: 36px;
}

.webisport-dashboard .webisport-group-sidebar .group-sidebar-identity .webisport-member-sidebar-name {
    margin-top: 0.25rem;
}

.webisport-dashboard .webisport-group-sidebar .group-sidebar-type-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.webisport-dashboard .webisport-group-sidebar .group-sidebar-identity .webisport-member-sidebar-id {
    margin-top: -0.15rem;
}

/* ================================================
   Group create / edit modal (publication-style sections)
   ================================================ */

.webisport-dashboard #webisport-group-modal .webisport-modal-body {
    background: #fff;
}

.webisport-dashboard .group-edit-form .pr-section-body > .webisport-form-group:last-child {
    margin-bottom: 0;
}

.webisport-dashboard .group-image-pickers {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ws-space-4);
}

@media (min-width: 720px) {
    .webisport-dashboard .group-image-pickers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.webisport-dashboard .group-image-picker-field .pr-field-hint {
    display: block;
    margin-bottom: 0.5rem;
}

.webisport-dashboard .group-image-picker .webisport-image-picker-preview {
    position: relative;
    width: 100%;
    border-radius: var(--ws-radius-sm);
    overflow: hidden;
    border: 1px solid var(--ws-border, rgba(47, 43, 61, 0.12));
    background: var(--ws-bg-subtle, #f8f7fa);
}

.webisport-dashboard .group-image-picker--cover .webisport-image-picker-preview {
    max-width: none;
    aspect-ratio: 16 / 9;
}

.webisport-dashboard .group-image-picker--avatar .webisport-image-picker-preview {
    max-width: 160px;
    aspect-ratio: 1;
    border-radius: 50%;
}

.webisport-dashboard .group-image-picker .webisport-image-picker-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.webisport-dashboard .group-image-picker .webisport-image-picker-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webisport-dashboard .group-image-picker .webisport-image-picker-remove:hover {
    background: rgba(220, 53, 69, 0.9);
}

/* ================================================
   Group add-members picker modal
   ================================================ */

.webisport-dashboard #webisport-group-add-member-modal .webisport-modal-content.group-add-members-modal {
    max-width: 1040px;
    width: min(1040px, calc(100vw - 2rem));
    max-height: 90vh;
}

.webisport-dashboard #webisport-group-add-member-modal .group-add-members-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding-top: 0.75rem;
}

.webisport-dashboard .group-add-members-picker {
    display: flex;
    flex-direction: column;
    gap: var(--ws-space-3);
    min-height: 0;
    flex: 1 1 auto;
}

.webisport-dashboard .group-add-members-filters {
    margin: 0;
}

.webisport-dashboard .group-add-members-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ws-space-2);
}

.webisport-dashboard .group-add-members-count {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ws-text-secondary);
    margin-right: auto;
}

.webisport-dashboard .group-add-members-table-host {
    position: relative;
    flex: 1 1 auto;
    min-height: 14rem;
    overflow: auto;
}

.webisport-dashboard .group-add-members-table-host .webisport-card--table {
    margin: 0;
}

.webisport-dashboard .group-add-members-table-host .webisport-badge + .webisport-badge {
    margin-left: 0.25rem;
}

.webisport-dashboard .group-add-members-row-in {
    background: rgba(40, 199, 111, 0.04);
}

.webisport-dashboard .group-add-members-table-host .webisport-th-checkbox,
.webisport-dashboard .group-add-members-table-host .webisport-td-checkbox {
    width: 40px;
    text-align: center;
}
