/* Groups Page Specific Styles */

.groups-page-container {
    padding-bottom: 4rem;
}

/* Create Group Form - Vertical Layout */
.create-group-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.create-group-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.create-group-input-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.create-group-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
}

/* Error Box Styling */
.group-error-box {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.group-error-icon {
    color: var(--danger);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.group-error-content h4 {
    color: #991b1b;
    /* red 800 */
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.group-error-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.group-error-list li {
    color: #b91c1c;
    /* red 700 */
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Extra separation between sections */
.section-spacer {
    width: 100%;
    margin-bottom: 2rem;
}

/* Member Form (Moved/Refined) */
.member-form {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.input-icon-wrapper {
    position: relative;
    flex-grow: 1;
}

.input-icon {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    pointer-events: none;
    color: var(--text-muted);
}

.input-with-icon {
    width: 100%;
    padding-left: 2.5rem !important;
}

.btn-auto-width {
    width: auto !important;
    white-space: nowrap;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}