/* ─── Users page ───
 * Outer flex layout (sidebar + main) is handled by .app-shell in base.css.
 * This stylesheet only styles the main card and its internals.
 */

.users-main {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 0 25px rgba(14, 165, 233, 0.15);
    backdrop-filter: blur(12px);
}

/* ─── Header ─── */
.users-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.users-header__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.users-header__title {
    margin: 0;
    color: #1e293b;
    font-family: var(--font-heading);
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    letter-spacing: -0.75px;
}

.users-header__subtitle {
    margin: 0;
    color: #64748b;
    font-family: var(--font-heading);
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

.users-header__action {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    min-width: 160px;
    padding: 0 16px;
    border: var(--border-width-default) solid var(--color-primary);
    border-radius: var(--radius-xl);
    background: var(--color-primary);
    color: #ffffff;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.users-header__action:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

/* ─── Table header ─── */
.users-table-header {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr)) 18px;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
}

.users-table-header__cell {
    color: #64748b;
    font-family: var(--font-heading);
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
}

.users-table-header__spacer {
    display: block;
}

/* ─── Rows list ─── */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.users-list .select-input {
    box-shadow: none;
}

.users-list__empty {
    margin: 0;
    padding: 12px 16px;
    color: var(--color-slate-400);
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 16px;
}

/* ─── Create form (inline card shown above the list when creating) ─── */
.users-create {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background: var(--color-surface);
    border: var(--border-width-default) solid var(--color-border-soft);
    border-radius: var(--radius-4xl);
}

.users-create__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: var(--color-slate-800);
}
