/* groups.css - SaaS Professional Groups UI */
.groups-view {
    display: flex;
    height: 100%;
    overflow: hidden;
}

.groups-sidebar {
    width: 320px;
    border-right: 1px solid var(--notion-hairline);
    display: flex;
    flex-direction: column;
    background-color: var(--notion-surface-soft);
    flex-shrink: 0;
}

.groups-sidebar-header {
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.groups-sidebar-header h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--notion-slate);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.groups-search {
    padding: 0 var(--spacing-xl) var(--spacing-lg);
}

.groups-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 var(--spacing-md) var(--spacing-xl);
}

.group-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--rounded-md);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
    border: 1px solid transparent;
}

.group-item:hover {
    background-color: var(--notion-hairline-soft);
}

.group-item.active {
    background-color: var(--notion-canvas);
    border-color: var(--notion-hairline);
    box-shadow: var(--shadow-subtle);
}

.group-icon-box {
    width: 36px;
    height: 36px;
    background-color: var(--notion-card-lavender);
    color: var(--notion-brand-purple);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.group-item.active .group-icon-box {
    background-color: var(--notion-primary);
    color: var(--notion-on-primary);
}

.group-item-info {
    flex: 1;
    min-width: 0;
}

.group-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--notion-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-item-count {
    font-size: 12px;
    color: var(--notion-stone);
}

.group-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--notion-canvas);
    overflow: hidden;
    position: relative;
}

.group-header {
    padding: var(--spacing-xl) var(--spacing-xxl);
    border-bottom: 1px solid var(--notion-hairline);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: var(--notion-canvas);
}

.group-title-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--notion-ink);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.5px;
}

.group-summary-stats {
    display: flex;
    gap: 32px;
    margin-top: var(--spacing-lg);
}

.summary-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--notion-stone);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--notion-ink);
}

.group-actions-bar {
    display: flex;
    gap: var(--spacing-sm);
}

.group-contacts-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-xl) var(--spacing-xxl);
    overflow: hidden;
}

.contacts-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.contacts-header-actions h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--notion-charcoal);
}

.contacts-search-box {
    width: 300px;
    position: relative;
}

.contacts-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--notion-stone);
    width: 14px;
    height: 14px;
}

.contacts-search-box .form-control {
    padding-left: 36px;
    height: 36px;
    font-size: 13px;
}

.table-card {
    flex: 1;
    background-color: var(--notion-canvas);
    border: 1px solid var(--notion-hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notion-data-table {
    width: 100%;
    border-collapse: collapse;
}

.notion-data-table th {
    background-color: var(--notion-surface-soft);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--notion-slate);
    border-bottom: 1px solid var(--notion-hairline);
    position: sticky;
    top: 0;
    z-index: 1;
}

.notion-data-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--notion-charcoal);
    border-bottom: 1px solid var(--notion-hairline-soft);
}

.notion-data-table tr:hover td {
    background-color: var(--notion-surface-soft);
}

.empty-group-selection {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px;
    text-align: center;
    color: var(--notion-stone);
}

.empty-group-selection i {
    width: 64px;
    height: 64px;
    color: var(--notion-muted);
    margin-bottom: var(--spacing-xl);
    stroke-width: 1;
}

.empty-group-selection h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--notion-ink);
    margin-bottom: var(--spacing-sm);
}

.empty-group-selection p {
    font-size: 14px;
    max-width: 320px;
    line-height: 1.6;
}

.pagination-footer {
    padding: var(--spacing-md) var(--spacing-xl);
    border-top: 1px solid var(--notion-hairline);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--notion-surface-soft);
}
